LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to change color of LED

Environment : Labview 2021, UI control suite : NI Themed custom control suite (1.0.0.2)

 

 Hello, there !

     I am doing a simple task that is changing a color of LED (from NI Themed custom control suite) on button action but unfortunately i don't know why on button action there is no customized color showing that is it showing only default colors. can you guys suggest how to do that?

 

Troubleshooting which i did:

1. Changed the version UI control suite : NI Themed custom control suite (1.0.0.1)

2. Solution that mentioned here

0 Kudos
Message 1 of 2
(1,030 Views)

That particular control *1 doesn't use any of the colors in the "Colors[4]" *2 properties.  It has 4 picture items that define its appearance *3.

 

*1 and probably all of the booleans in NI Themed custom control suite

*2 The "Colors[4]" property can actually have 6 colors:  [0]: False, [1]: True, [2]: T -> F, [3]: F -> T, [4]: F (rollover), [5]: T (rollover)

*3 See "Creating Custom Controls, Indicators, and Type Definitions"

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