Myo Gesture Armband icon Myo Gesture Armband Map Myo armband gestures and accelerometer to servos and ARC scripts for arm-mimic control; supports multiple armbands. Try it →
Asked — Edited

Saying A Variable From The Variable Watcher

Ok I am running one of those other boards and sending a variable to EZB and into the variable watcher. This is a room temperature reading. The variable name is $Temp. I want to have EZB tell me the variable value at the time I ask for it. (Example: It is 74 degrees in the room at the time of the reading.) I have tried ... SayWait("The temperature is ", +$Temp) but all i get is a error.

What is the proper way to ask EZB to say a int variable from the variable watcher?

Thanks


ARC Pro

Upgrade to ARC Pro

Stay on the cutting edge of robotics with ARC Pro, guaranteeing that your robot is always ahead of the game.

Author Avatar
PRO
Synthiam
LinkedIn Thingiverse Twitter YouTube GitHub
#2  
  1. you don't interact a variable from the variable watcher. The variable watcher merely displays the contents of declared variables

  2. the syntax to combine variables is the same in all programming languages, which is a + symbol

Your code would be:


SayWait("The temperature is " + $Temp) 
#3  

I needed to have the space between the "+" & "$Temp".

Thanks guys

Author Avatar
PRO
Synthiam
LinkedIn Thingiverse Twitter YouTube GitHub
#4  

And you should not have a comma