This is a smarter variable watcher that replaces the standard built-in version. This version uses less CPU for large projects.
How to add the Smart Variable Watcher robot skill
- Load the most recent release of ARC (Get ARC).
- Press the Project tab from the top menu bar in ARC.
- Press Add Robot Skill from the button ribbon bar in ARC.
- Choose the Scripting category tab.
- Press the Smart Variable Watcher icon to add the robot skill to your project.
Don't have a robot yet?
Follow the Getting Started Guide to build a robot and use the Smart Variable Watcher robot skill.
How to use the Smart Variable Watcher robot skillThis is a smarter variable watcher that replaces the standard built-in version. This version uses less CPU for large projects.
When large arrays are defined, it may take a long time for the grid to render the data. However, once rendered, the data will update much faster than the ARC built-in variable watcher.
1) The name of the variable. The variables in [ brackets ] are internal values and are not variables. For example, the volume or speed are set with functions. They are displayed here for convenience.
2) The type of the variable. I.E. string, number, array, etc...
3) Displays the number of characters if this is a string type
4) The value of the variable
5) 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.
6) Clear all variables and their stored data
7) Display the string data as hex values
*Note: It is not recommended to run a production project with this robot skill. This is due to the resources needed for this skill. If variables are updated often, the processor will be updating this robot skill often and that takes performance from other robot skills that control the robot. This was designed for debugging, not for production use.
Future dev ideas:
- cache updates to a nonblocking list and update the grid in an interval
- allow specifying what variables to watch (or maybe just an option to ignore arrays)