LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to use one boolean button to control many boolean buttons?

I would like to create a LabView control interface with boolean buttons.

As my attachment picture shown, there are four boolean buttons.
The button1 is the main power, if I press ON button1, other three
buttons also turned to ON at the same time.

How do I build up the LabView program in the block diagram?
What should I do???
0 Kudos
Message 1 of 2
(2,396 Views)
Controls and indicators function as variables. In a text based language, you could just write the name of the variable again. In LV, since each control only has one terminal, you need local variables to do this. To create a local variable, right click on the control and from the popup menu select Create>>Local Variable. You can have a local as read or write. Create a local for each of the buttons and wire the data coming out of the first button into the locals.
There is something that is very important to understand here - when you use locals, you can disrupt the dataflow nature of LV and create race conditions. For example - if, after fixing your code, you were to click on one of the buttons, to set it to F, it would immediately be set back to T by the running code. This can be very dangerous. Also, I see you're using the continuous run mode. You should use a loop instead. Try looking for some LV by searching google for "Labview tutorials. Also, here's one you can start with.

___________________
Try to take over the world!
0 Kudos
Message 2 of 2
(2,384 Views)