# LabVIEW

cancel
Showing results forÂ
Did you mean:Â

Solved!
Go to solution

## display different colors in one led

I want to display 3 warning light( with different color) in the same LED I can not figure it out. any suggestion thank you

Message 1 of 16
(660 Views)
Solution
Accepted by topic author jiji_830

## Re: display different colors in one led

An LED is a boolean, and thus has only two states (T or F).

Of course you can change the colors of these state with property nodes, which is a bit of a kludge.

A better solutions would be to use a colorbox (it can be made to look like an LED).

Message 2 of 16
(657 Views)

## warning light in same leds

plz help me how i can display the following warning light

low temperature ===> yellow light

normal temperature===> green light

high temperature ===> red light

Message 3 of 16
(573 Views)

Message 4 of 16
(570 Views)

## Re: warning light in same leds

how ? should i use case structure ?? Thank you

Message 5 of 16
(568 Views)

## Re: warning light in same leds

Sorry, I cannot look at your VI because I don't have LabVIEW 2021 here. Consider "save for previous" to get more responses.

@jiji_830 wrote:

should i use case structure ??

Why a case structure?? Yes, you could use one, but there are plenty of ways that don't need one and these solutions are probably more elegant.

Did you look at some of my examples in my earlier link?

Message 6 of 16
(534 Views)

## Re: warning light in same leds

yes I did look at your examples but still not figure it out

Message 7 of 16
(480 Views)

## Re: warning light in same leds

As I said, do a "save for previous" so I can look at the VI.

(From the gigantic oversized picture you posted (please crop it to the interesting parts!!!) you need to continue with the basic tutorials because that code makes absolutely no sense. For example, you compare a red and a green diagram constant and these are never equal, right? So what's the point? Where do you define the loop rate? Why is there even a while loop because since the subVI is outside it will only run once once and then never again, so the values in the tunnels will never change.)

Message 8 of 16
(474 Views)
Solution
Accepted by topic author jiji_830

## Re: warning light in same leds

See if you can figure this one out:

Message 9 of 16
(471 Views)

Message 10 of 16
(458 Views)