LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Can the LEDs in an array be different color?

Dear All,
There are some LEDs in an array. Can they be different color?
 
Thank you.
0 Kudos
Message 1 of 4
(2,667 Views)
All the elements in an array have the same properties, so the short answer is no.
If you need different colors, you may use a cluster of LEDs instead, or an array of Color Boxes. In this last case you would need to manage the ON and OFF states by manipulating colors directly (i.e. you cannot assign True or False to a Color Box).
Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
Message 2 of 4
(2,660 Views)

See this thread for a .ctl file simulating an led with a round color box.

http://forums.ni.com/ni/board/message?board.id=170&message.id=128567&view=by_date_ascending&page=1

Message 3 of 4
(2,626 Views)
A Boolean (e.g. a LED) can have exactly two colors, one for TRUE and one for FALSE. All elements in and array have identical properties, but each can have different values (true vs. false). So if you only need two different colors, the problem is trivial. 😉
 
A color box has been mentioned. HERE is another link to show how it can be done. Once you have the color box constant, place it into an array container.
 
HERE is an example of a 2D array of colorboxes.
Message 4 of 4
(2,613 Views)