LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LED with Dropdown Ring

Hello guys! I was trying to figure out how to have an LED light up only when I select an option from a dropdown ring. Each option would have its own LED and would like them to light up the same way. I tried searching with no luck. Thanks for the help ahead of time! 

FlightGuy_0-1692709056735.png

 

0 Kudos
Message 1 of 8
(1,064 Views)

Hi Guy,

 


@FlightGuy wrote:

I was trying to figure out how to have an LED light up only when I select an option from a dropdown ring.


All you need to do now is to wire a TRUE to your boolean indicator "350" as you already use a case structure to handle the "option item from dropdown ring"…

 

What exactly means "light up"?

 


@FlightGuy wrote:

Each option would have its own LED and would like them to light up the same way.


So you will have several cases in your case structure!?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 8
(1,058 Views)

I have wired a TRUE to the 350 and it does light up, however when I select a different case from the dropdown I would like it to stop being on ie, be FALSE.

 

By light up I meant that the LED looks like it is on.

 

Yes, I have multiple cases and would like an LED for each case.

0 Kudos
Message 3 of 8
(1,051 Views)

I"m not sure if I understood your question. 

 

Would an array of booleans work for you or you need individual leds ? 

LVNinja_0-1692710093408.png

 

0 Kudos
Message 4 of 8
(1,050 Views)

So I would have an single LED for each case like 350 and 305 in this image. When I select a case, I would like its LED to light up and all other case LEDs turn off

FlightGuy_0-1692710478685.png

 

0 Kudos
Message 5 of 8
(1,045 Views)

Hi Guy,

 


@FlightGuy wrote:

So I would have an single LED for each case like 350 and 305 in this image. When I select a case, I would like its LED to light up and all other case LEDs turn off


Then all those LEDs (305, 350, ...) belong AFTER the case structure!

You only need to wire a True/False constant inside each case to the LED indicators…

 

THINK DATAFLOW: each case wants to write a value to all those LED indicators so the common part (of writing to the LEDs) belongs after the case structure. Inside the individual cases only case-specific work needs to be done (like selecting the True/False values)!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 6 of 8
(1,019 Views)

I have tried the TRUE/FALSE constants but my issue was that when I switch to another case, the LED does not turn off.

0 Kudos
Message 7 of 8
(1,008 Views)

Hi Guy,

 

would this be something you are looking for? ExampleVI is attached.

FrankenChino_0-1692715724981.png

 

 

 

0 Kudos
Message 8 of 8
(987 Views)