Display Popup icon Display Popup Full-screen popup display for ARC: show custom text with configurable timeout, font, text/background color, size and position via controlCommand(). 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 at the forefront of robot programming innovation with ARC Pro, ensuring your robot is always equipped with the latest advancements.

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