LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to create "pick only one" controller?

Solved!
Go to solution

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?

Download All
0 Kudos
Message 1 of 9
(3,234 Views)

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.

0 Kudos
Message 2 of 9
(3,221 Views)

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?

0 Kudos
Message 3 of 9
(3,219 Views)
Solution
Accepted by topic author sharinganez

Yes there is a control called RADIO buttons. suits your application dear.

Message 4 of 9
(3,212 Views)

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.

 

 

Message 5 of 9
(3,209 Views)

Oh its so easy!

Thanks dear Robot tongue

0 Kudos
Message 6 of 9
(3,208 Views)

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

0 Kudos
Message 7 of 9
(3,196 Views)

Its the LOCAL variable of ARRAY control. You can create it by Right clicking on Array control.

0 Kudos
Message 8 of 9
(3,190 Views)

oo..cant recognise it as symbol not quite same

im using 8.5

 

Thanks kekin n ravenFan

both solutions work as well

Smiley Happy

0 Kudos
Message 9 of 9
(3,187 Views)