08-13-2021 01:31 AM
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.
Solved! Go to Solution.
08-13-2021 01:47 AM
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…
08-13-2021 01:56 AM
@AndreiV wrote:
the progress of a series of tests.
Hello Andrei,
how about a progress bar?!
Regards, Jens
08-13-2021 03:39 AM - edited 08-13-2021 03:40 AM
@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.
08-13-2021 03:42 AM
@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.
08-13-2021 07:43 AM
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.
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.
08-13-2021 12:46 PM - edited 08-13-2021 12:47 PM
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!
08-13-2021 04:20 PM
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 ...