05-31-2014 10:47 AM
Good afternoon,
I have a question about the case structure. If you use 3 cases, default 0, 1 and 2, like in the following VI.
How can you fix that the sum is never 3? Because when you turn on the switch 1 and 2 simultaneously it gives the sum 3 and the case will go in the default stand.
Thanks for the help.
Solved! Go to Solution.
05-31-2014 11:22 AM - edited 05-31-2014 11:23 AM
I actually wants that it's not possible to turn on switch 1 and 2 simultaneously, so that the sum never is 3.
05-31-2014 11:29 AM
I recommend changing to using an Event Structure. That way you react to when a switch is toggled instead of constantly polling.
What I would do is, with the Event Structure, have a case for each switch's value change. In the event case, you use a property node to set the Disabled property of the other switch based on the current switches value (Switch 1 goes true, so disable switch 2)
05-31-2014 11:31 AM
Use a radio button. You can replace the standard buttons with your wide toggles.
Lynn
05-31-2014 12:29 PM
Thanks a lot for the solutions