LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

resetting boolean control

Solved!
Go to solution

hi all

please have a look at my VI 

 

what I am achive here is this

 

i have four bottons . User can press any of these 4 bottons to start a routine in block diagram. what i have done is that when the user presses any of the botton, a string constant is compared to an exsisting array of string constants and then the coressponding case executes . Now what i am having problem is that i have changed the bolean control to " Switch when pressed ", now when i press one of the botton i have to press it again before pressing anyother botton (because of mechinalcal action i have choosed)  .  how can i implent a condition that when i press a botton the previous control resets its self ...... for example if first i press option 1 , then when i press option 2 i donot have to press option 1 then option 2 . Pressing option 2 should automatically reset the option 1.

 

i know that more easier way is using an event structure .. but the main thing i need is how to get the bottonto reset when another botton is pressed

 

regards 

Regards
0 Kudos
Message 1 of 4
(6,515 Views)
Try "Latch Until Released"
0 Kudos
Message 2 of 4
(6,511 Views)

 


need is how to get the bottonto reset when another botton is pressed
You can use a invoke node like this

 

 

in.PNG

Message 3 of 4
(6,503 Views)
Solution
Accepted by topic author nolsqn

(Please ignore the two anwers above, they make no sense and just complicate the issues.)

 

You want radio button functionality, so place your four buttons inside a radio button control. That's it!

 

Here is a simple example, see if it makes sense.

 

(btw: your code is way too complicated for this simple task. One (or zero) case structures should be enough. Also any toplevel UI loop needs a small wait)

Message Edited by altenbach on 01-18-2010 12:11 AM
Message 4 of 4
(6,495 Views)