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: 

change led state condition is met

hi ,

i have 3 temporary buttons and every time the button is pressed its corresponding led will turn on. i want to make it so that when all of the leds are on they will be off . then when the buttons are pressed again the led will turn on again and when all 3 is on they will then turn off.

 

this is how i want it to be

press button 1 --------> turn on led 1

press button 2 --------> turn on led 2

press button 3 --------> turn on led 3, turn off led1, turn off led2 turn off led3

 

pls ignore other vis that are in the diagram disable structure.

thanks in advance guys!!! hope you can help me 🙂

Download All
0 Kudos
Message 1 of 2
(2,785 Views)

Try to use a single loop. What is the purpose of the outer loop?

Don't hide the LED terminal inside a case structure.

You could also simplify by using an array of three buttons and an array of three LEDs.

0 Kudos
Message 2 of 2
(2,749 Views)