LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Can 2 boolean buttons on the front panel control the same function?

Hi all!
I'm pretty new to LabVIEW, so this may seem like a simple question, but I've been working on it a while now and I can't seem to get this to work. My VI consists of 2 different screens in a tab control on the front panel, the first one containing a process control simulation and the second one the details and parameters required. I want to have a button which turns the PID controller on and off on the first screen, which is simple enough, but I also want another button on the other screen to do the exact same thing. The two buttons should be linked, in that when one is turned on, the other goes on automatically, but it should also be possible to use either one to turn the contr
ol on/off (i.e. one should not just be an indicator).

Is this even possible?? Any help would be appreciated....
0 Kudos
Message 1 of 3
(3,642 Views)
This could be done by using a local variable for each button and writing values back and forth. You need to be careful how you do this, though, because you might create a "race condition." I have attached a LabVIEW 6i example to this post that demonstrates how to do this. Good luck.
0 Kudos
Message 2 of 3
(3,642 Views)
Take your tab control terminal and wire it to a case structure. Place the two control booleans inside the appropriate cases and wire them both to the same output node. Use a local variable to set one control when another is used.
0 Kudos
Message 3 of 3
(3,642 Views)