04-17-2012 11:59 AM
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.
04-17-2012 12:12 PM
04-17-2012 12:50 PM
Was this post suggesting something or was it asking for help or advice?
04-17-2012 02:37 PM - edited 04-17-2012 02:38 PM
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
04-17-2012 03:28 PM - edited 04-17-2012 03:30 PM
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
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.