LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

mutex switch

Hi

 Now I have a problem, I want to achieve a mutex switch, how can I achieve it? The function of the switch is follow:

Switch1 and switch2, when the value of them is turned to true from false, all of them will be controlled by themselves.

But when the value of each is turned to false from true, the value of switch1 depends on the value of switch2, if the value of switch2 is true, the value of switch1 is false, else is true, the same to switch2.

 

Best wishes

 

vivian     
0 Kudos
Message 1 of 2
(2,331 Views)

I would consider putting these two switches into an event structure.  Perhaps the Mouse Down? event.  You could read the value of the switches.  If one or the other is true, and the switch with the mouse down event is currently false, you could discard the event to prevent it from going true.

See attached.

0 Kudos
Message 2 of 2
(2,308 Views)