LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Can I use a colour palette control to set the colour of an LED on front panel?

Hi,

I want to allow the user of my LabView program to be able to set the colour of an enlarged LED on the front panel using a colour palette control also on the front panel. Is this possible or can the LED only be the colour it is set to in its properties dialogue box?

Thanks,
Dave.
0 Kudos
Message 1 of 5
(4,942 Views)
Right mouse on the LED, create a property node, select colors[4], use the color control box to build an array and wire that array to the property node.
Greg Bush CLAD
Message 2 of 5
(4,934 Views)
- thanks for that, I'll try it soon.

Dave
0 Kudos
Message 3 of 5
(4,914 Views)
The question is of course: "Does it really need to be a boolean LED that has a True/False and all the boolean logic??? 😮

If you just want an LED lookalike where the color can be easily controlled programmatically I would recommend a color box indicator instead. You can even customized it to look like an LED! The attached example (LabVIEW 7.1) shows both methods, but the color box option is programmatically much less messy (no bundling, no array building, no property nodes!).

(To make the LED color box indicator, I customized a plain color box and simply imported the graphic elements from the regular LED indicator.) 🙂
Message 4 of 5
(4,903 Views)
- Thanks.
0 Kudos
Message 5 of 5
(4,873 Views)