Asked
Resolved Resolved by Athena!

EZ Script Clearvariable Does Not Clear Variable

I have an EZ Script that changes a variable several times. That works well. Then at the end of the script want to clear that variable from ARC's memory . That does not work. I'm using the new Smart Variable watcher and the variable does not disappear after the script ends. Here is the command and variable I'm using:

ClearVariable("$enviro")

Here is the Smart Variable Watcher a while after the script ends. 

User-inserted image

Any ideas? Thanks!



Related Hardware (view all EZB hardware)
EZ-B V4 by EZ-Robot
EZ-B v4/2 robot controller: dual Cortex ARM, Wi-Fi, audio/video, 24 servo/digital ports, I2C/UART, camera and Synthiam ARC control for custom robots
Wi-Fi / USB
Servos 24
Camera
Audio
UART 3
I2C
ADC 8
Digital 24

Related Robot Skills (view all robot skills)
Script by Synthiam
Multi-language ARC Script: build, run and debug Blockly, JavaScript, EZ-Script or Python with Intellisense, run/save/load and Roboscratch support
Real-time EZ-Script console for ARC: enter and execute single-line commands, view output, clear display, and recall history with UP/DOWN.

ARC Pro

Upgrade to ARC Pro

Unleash your creativity with the power of easy robot programming using Synthiam ARC Pro

#1   — Edited

OK, I finally figured this out. I reread the manual for the Smart Variable Watcher again (for about the 3rd time this week. lol). Somehow the below statement for the "Refresh" button never registered in my head. Uhg!

  1. Manually refreshes the variable list and data. This may be necessary if a variable has been deleted by using a ClearVariable command. If your code clears a variable and you're wanting the variable to no longer display in the list, press the Refresh button.

Seems the Smart Variable Watcher may not dynamically clear the variable from the list.

This is resolved. Please also disregard the Premium Support  request I sent in.

Author Avatar
PRO
Synthiam
#2  

Ah that was just added today - that's why. I just noticed that as well:)

#3  

Lol. You guys are Always making things better! Thanks