LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Custom color

Hi Everyone,

I have an idea for a custom indicator.  I need to programattically control the color of a square object on the front panel, which I know how to do.  I will presumably use an LED inidicator and use the property node interface to control the color.

My problem is, on close inspection of the LED indicator, there is a sheen present making it look like there is a light source illuminating the LED from somewhere in the top left.  My idea will only work if the entire surface of the indicator is constant in hue and saturation.

Does anyone have any ideas on how to programatically control the color of front panel object?

Thanks,
Chris
Chris Reyerson
Optical Systems Engineer
Arete Associates
Tucson, AZ
0 Kudos
Message 1 of 4
(2,542 Views)
Look at the flat buttons on the classic boolean palette.
0 Kudos
Message 2 of 4
(2,536 Views)
That's perfect, thanks very much.
Chris
Chris Reyerson
Optical Systems Engineer
Arete Associates
Tucson, AZ
0 Kudos
Message 3 of 4
(2,531 Views)
A  boolean (by definition) has only two states, so to use it as a color indicator is not the correct way. Writing to color properties is not a clean and efficient method.
 
What you need is a simple colorbox. It directly takes a color as input and already does not have a "sheen".
 
The attached example show three possible styles.



Message Edited by altenbach on 03-15-2008 11:16 PM
Download All
0 Kudos
Message 4 of 4
(2,523 Views)