08-25-2010 10:13 PM
Hi ..i am new here..
i want to create a control panel with the following functions.
- control panel consist of 5 elements inside
- if i choose LED 2, will perform [action 2]
- if i choose LED 4, will perform [action 4]
and etc...
now my problem is.. when i click LED 2, it does perform [action 2]
but when i click LED 4 in sequence, LED 2 light is still on.
( The concept i want is ...when i click LED 4 in sequence, LED 2 will auto turn off, LED 4 will turn on)
i want to make it only ONE option can be chosen during the operation.
any idea?
Solved! Go to Solution.
08-25-2010 10:38 PM
It's should be very simple.
Just wire FALSE constant to rest of the LEDs & TRUE to the one selected.
Once you get which LED got selected, you can easily do this.
It will be good if you post ur VI to understand the logic.
I hope this helps. Kudoes are welcomed.
08-25-2010 10:48 PM
Hi kekin,
i don't quite understand it.
my LED array is control, how can i wire true/false to them?
Sorry i can't post the Vi here as i hav no idea how to build it
An array of 5 LED as control
criteria : only can choose 1 at a time
if i choose LED 1, perform [action 1]
then if i choose LED 2, LED 1 must off, perform [action 2]
I wonder does labVIEW provide any control with such functions?
08-25-2010 10:55 PM
Yes there is a control called RADIO buttons. suits your application dear.
08-25-2010 11:01 PM - edited 08-25-2010 11:03 PM
If you don't want to use radio buttons, then use an event structure. Inside the event case, replace all the other elements of the array with a False.
An XOR function will work nicely.
08-25-2010 11:02 PM
Oh its so easy!
Thanks dear
08-25-2010 11:06 PM
Hi Ravens Fan,
Thanks for your solution as well.
Btw, what is the thing that connect to the output of XOR gate?
im trying now
08-25-2010 11:20 PM
Its the LOCAL variable of ARRAY control. You can create it by Right clicking on Array control.
08-25-2010 11:25 PM
oo..cant recognise it as symbol not quite same
im using 8.5
Thanks kekin n ravenFan
both solutions work as well