LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Multi-Color Indicator

To create a multi-color indicator:

 

1. Start with a classic radio buttons control.
2. Replace the radio buttons with any style of indicator that you like.
3. Add as many more as you need for your color set.
4. Change the OFF color of all the indicators to transparent.
5. Change the ON color of each indicator to a different color.
6. Stack the indicators on top of each other.
7. Change the background and border colors of the cluster to transparent.

 

An example is attached.

Message 1 of 5
(5,264 Views)
What's wrong with using a simple colorbox? 😄
0 Kudos
Message 2 of 5
(5,258 Views)

Was this post suggesting something or was it asking for help or advice?

0 Kudos
Message 3 of 5
(5,250 Views)

altenbach wrote:
What's wrong with using a simple colorbox? 😄


 

If you have a limited number of color options you need to support in your application example Red Yellow Green you can define an enum (or another numeric source) to have three values where "0" is red, "1" is Yellow and "2" is green.

 

Using the approach outlined above you just wire the numeric to the "Multi-Color Indicator".

 

If we used a color box we would need a look-up table between the two.

 

So i read this as a Micro-Nugget.

 

But then again, a Picture Ring with the pictures being colors would be about the same.

 

Ben

 

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 4 of 5
(5,230 Views)
 

Ben wrote:


altenbach wrote:
What's wrong with using a simple colorbox? 😄


 

If you have a limited number of color options you need to support in your application example Red Yellow Green you can define an enum (or another numeric source) to have three values where "0" is red, "1" is Yellow and "2" is green.

 

Using the approach outlined above you just wire the numeric to the "Multi-Color Indicator".

 

If we used a color box we would need a look-up table between the two.

 

So i read this as a Micro-Nugget.

 

But then again, a Picture Ring with the pictures being colors would be about the same.

 

Ben

 


I love rings for this ( use non-sequential values)- use hex display for the values and

Red    FF0000

Green 00FF00

Blue   0000FF

 

 

 CM.png

The real beauty of this method-  Durring development you can make an vi like this- SWAP indicator/control on both - use the color picker to choose nice colors and IF you allow undefined values at runtime- the values you chose show up in RGB.


"Should be" isn't "Is" -Jay
Message 5 of 5
(5,214 Views)