LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

display different colors in one led

Solved!
Go to solution

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

0 Kudos
Message 1 of 16
(672 Views)
Solution
Accepted by topic author jiji_830

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).

0 Kudos
Message 2 of 16
(669 Views)

plz help me how i can display the following warning light

low temperature ===> yellow light

normal temperature===> green light

high temperature ===> red light

 

 

Download All
0 Kudos
Message 3 of 16
(585 Views)
0 Kudos
Message 4 of 16
(582 Views)

how ? should i use case structure ?? Thank you

0 Kudos
Message 5 of 16
(580 Views)

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?

0 Kudos
Message 6 of 16
(546 Views)

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

0 Kudos
Message 7 of 16
(492 Views)

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.)

0 Kudos
Message 8 of 16
(486 Views)
Solution
Accepted by topic author jiji_830

See if you can figure this one out:

 

altenbach_0-1638304227426.png

 

0 Kudos
Message 9 of 16
(483 Views)

jiji_830_0-1638317881457.png

 

0 Kudos
Message 10 of 16
(470 Views)