LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can i create an indicator that changes color?

Solved!
Go to solution

Hello. I would like to make a front panel indicator that could show, with a color and a label, the progress of a series of tests. I can't seem to find any sort of LED-like component whose color I might change. 

How can i go about implementing such a feature?

 

Thanks.

0 Kudos
Message 1 of 8
(3,247 Views)

Hi Andrei,

 


@AndreiV wrote:

I would like to make a front panel indicator that could show, with a color and a label,


Use a colorbox indicator…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 8
(3,242 Views)

@AndreiV wrote:

 the progress of a series of tests.

 


Hello Andrei,

 

how about a progress bar?!

 

Regards, Jens

Kudos are welcome...
0 Kudos
Message 3 of 8
(3,234 Views)

@GerdW wrote:

Hi Andrei,

 


@AndreiV wrote:

I would like to make a front panel indicator that could show, with a color and a label,


Use a colorbox indicator…


 

I must be getting something wrong, but that does not seem to have a hex/rgb or any form of input for its color. I want to be able to change if based on some conditions. No fancy colors needed, just the ability to change its color during runtime. Sorry if what i'm asking is simple, i am not a LabVIEW developer, just need to quickly implement this feature in a program.

 

 

0 Kudos
Message 4 of 8
(3,210 Views)

@JensG69 wrote:

 

how about a progress bar?!

Looking for the quickest implementation. I imagine the progress bar would require me to update its status for every test i perform (and there's tens of them). A simple running/finished indicator would allow me to only update the status upon a failure. 

0 Kudos
Message 5 of 8
(3,206 Views)

All you need is a status bar that can be dynamically colored depending on a test's progress/result, and text in it that explains the progress/result. That's just a string indicator and a property node.

 

Spoiler
FireFistRedhawk_0-1628858502365.png

 

Redhawk
Test Engineer at Moog Inc.

Saying "Thanks that fixed it" or "Thanks that answers my question" and not giving a Kudo or Marked Solution, is like telling your waiter they did a great job and not leaving a tip. Please, tip your waiters.

Message 6 of 8
(3,173 Views)

Hi Andrei,

 


@AndreiV wrote:
I must be getting something wrong, but that does not seem to have a hex/rgb or any form of input for its color.

I don't know what your problem is:

Either use a colorbox constant to set the color, or use an U32 constant set to hex display…

(Or use the "RGB to color" function.)

 

When you have problems with your code then you should attach your code so we can debug it!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 7 of 8
(3,158 Views)
Solution
Accepted by topic author AndreiV

What I do is use the Boolean LED Indicator.  It has a Color Property with 4 values -- two for On, and two for Off (one is while pressed, the other while not pressed, if I remember correctly).  It is easy to right-click it, open the Property dropdown, right-click on the On color, and choose a replacement color from the Palette it shows you.

 

If you want to make a On/Off button that is, say Bright Red on and Dim Red off, open the Green Boolean, change the On to Red, change the Off also to Red (now you have two Bright-Reds), and modify the "Off" by looking at the RGB/HSL values (click the little Painter's palette shown on the bottom right) that are shown when you select Red.  Change Luminance to 35, and you'll get a nice "Off" color.

 

One warning -- if you have an Array of Booleans, you cannot color each a different color (since all Array Elements have to have the same underlying Type).  

 

Bob Schor

 

P.S. -- I just made one of these a week ago ...

Message 8 of 8
(3,142 Views)