Wowwee MIP V2 icon Wowwee MIP V2 UART interface to hack WowWee MIP with ESP32/ESP32‑Cam or EZ‑B v4 for ARC; hardware UART preferred, configurable power and baud 9600/115200 Try it →
United Kingdom
YouTube
Asked — Edited

Adding Variables To Variable Watch

Hey everyone.

Quick question as the title suggests. In sure I'm overlooking something simple, but I can't figure it out. How do I add a permanent variable to the Variable watch control?

The reason I ask is that I'm using Roborealm for face/object recognition using a $RR_NV_AVR_OBJ_NAME[0] variable, but every time I close the project down and reopen it later, the above variable disappears from the list and I get a debug message saying variable not found (or words to that effect). So to get my recognition script to run, I have to show the camera a recognised object or face for the variable watch to catch it again, then I can use the script with no error messages. If I can add this variable as a permanent item in the watcher, it would solve the problem.

Thanks.:)


ARC Pro

Upgrade to ARC Pro

Unlock the true power of automation and robotics by becoming a proud subscriber of Synthiam ARC Pro.

Author Avatar
United Kingdom
LinkedIn Twitter Google+ YouTube
#1  

The watcher shows all available variables. If it's not there it's not set.

Add it to an init script to add an entry for the variable to avoid it not existing...

$variable = "null"

Replace $variable as necessary.

Author Avatar
United Kingdom
YouTube
#2  

I knew it was simple lol.

Thanks Rich.:)