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 at the forefront of robot programming innovation with ARC Pro, ensuring your robot is always equipped with the latest advancements.

PRO
Synthiam
#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

PRO
Synthiam
#4  

And you should not have a comma