Link Button with variable
Tami91
✭
in ScreenMaker
I want to link a button to a variable. The variable should be 1 if the button is pressed and 0 when it is not. Using the variable (in my case a boolean variable) I want you to light up an LED, or simply not.
How do I connect the variable with the button? Which properties-subitem should I connect?
Funnily , it works perfectly for any other button, only with the classic "normal", there are problems. Or doesnt work a button if a RunRoutine(Button) is working?
Have a nice start of the week
How do I connect the variable with the button? Which properties-subitem should I connect?
Funnily , it works perfectly for any other button, only with the classic "normal", there are problems. Or doesnt work a button if a RunRoutine(Button) is working?
Have a nice start of the week
0
Comments
-
Hello,Looks like its a really late replyTo answer your question. You could use a normal Button control for the same. The functionality of the RunRoutine Button control is call a rapid routine.The ideal way may be to link a signal to the text property of button control. On click of the button control you could define an action to invert the signal.The same signal is also linked with the LED control so that the state changes.Thus, on button click signal value toggles between 1 and 0 and also reflects the state in LED.Thanks,Abhishek0
Categories
- All Categories
- 5.5K RobotStudio
- 396 UpFeed
- 18 Tutorials
- 13 RobotApps
- 297 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.8K Robot Controller
- 316 IRC5
- 61 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 798 RAPID Programming
- AppStudio
- 3 RobotStudio AR Viewer
- 18 Wizard Easy Programming
- 105 Collaborative Robots
- 5 Job listings