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: 

LED color change


@kaawn wrote:

Hi paul_cardinale,

I am using labview 8.0 so could not open the vi. Would it be possible to send a picture of the vi?

 

Thanks,

Kaawn


Here it is.

"If you weren't supposed to push it, it wouldn't be a button."
0 Kudos
Message 11 of 13
(371 Views)

@kaawn It does not work like that, only one color at a time. Depending on your program, you should be able to change LED colors programatically.

0 Kudos
Message 12 of 13
(349 Views)

@kaawn wrote:

I kinda need to use LEDs.


What does that even mean? As I said, an LED is of boolean type and can only have two states. To use three colors you can ignore the value (TRUE/FALSE) and set the color with property nodes (expensive!) or you need to worry that the color also depends on the value. In any case, you need to carry metadata about the state in addition to the boolean value, doubling the complexity of the datatype.

 

As I said, a color LED of colorbox type (U32)  is a significantly better idea. Here's one possible example:

 

ColorLED.png

0 Kudos
Message 13 of 13
(328 Views)