From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do you make an array of LED's mutually exclusive?

I have an array of led's on my control panel. Say 5 for sake of argument. I want only 1 led at a time illuminated.

If the user clicks on led 1 then led 1 lights and all others go out.

If the user clicks on led 2 then led 2 lights and all the others go out.

 

I don't want to use a radio button because the leds need to be pragmatically controlled by the program. 

 

An simple example would be greatly appreciated. Simple please for the the labview challenged.

 

Thanks in advanced.

0 Kudos
Message 1 of 9
(3,044 Views)

Try something like this.

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

I would still suggest a radio button.  You can replace the buttons with LEDs. Then use a local variable to write to the radio button terminal.

 

Aalenox,

 

Please do not post VIs with infinite loops. Add a Stop button.

 

Lynn

Message 3 of 9
(3,025 Views)

Lynn,

 

You need to get that .vi deleted and a version 12 uploaded.  Your version is 13 beta.

0 Kudos
Message 4 of 9
(3,016 Views)

I have reported it to the moderator.

 

I made a last second revision and probably grabbed the wrong version when posted.

 

This one should be LV2012.

 

Lynn

0 Kudos
Message 5 of 9
(3,009 Views)

Thanks for the help. I cant open your example can you resend in labview 11.

Thanks again.

0 Kudos
Message 6 of 9
(2,968 Views)

Can you send me the exapmle for labview 11 thats what I have.

Thanks

0 Kudos
Message 7 of 9
(2,927 Views)
0 Kudos
Message 8 of 9
(2,917 Views)

Thank you you are the man.

0 Kudos
Message 9 of 9
(2,903 Views)