01-18-2010 01:13 AM
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
Solved! Go to Solution.
01-18-2010 01:22 AM
01-18-2010 01:37 AM
01-18-2010 02:07 AM - edited 01-18-2010 02:11 AM
(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)