05-13-2012 10:37 AM
Hello,
I need to control a colorbox indicator with values from 0 to 225, but the colors must be in 8-bit grayscale.
Any ideas?
Solved! Go to Solution.
05-13-2012 11:28 AM - edited 05-13-2012 11:36 AM
The color box is U32. Given a U8 greyscale number, you simply need to join it three times, and pad with zeroes to get a greyscale color value.
There is the RGB to color tool that does this for you. Simply wire the U8 value to all three inputs.
05-14-2012 12:44 AM
is there a way to separately control background color of each element in an 2D array indicator?
05-14-2012 12:52 AM - edited 05-14-2012 12:55 AM
No, elements of an array can only differ in value, they cannot differ by properties (such as background color).
05-14-2012 12:54 AM
You can create a cluster of a transparent numeric in front of a color box, and create an array of such clusters. For a colorbox, the color is the value, so that will work.
05-14-2012 01:02 AM
okay, tnx
05-14-2012 11:24 AM
could you send an example...i cant get i to work
05-14-2012 12:37 PM
What is your LabVIEW version?
05-14-2012 12:50 PM - edited 05-14-2012 12:55 PM
Try something like this (LabVIEW 8.2). modify as needed.
This is using flat classic controls for the inner elements for simplicity. ("Color Box" and "Simple Numeric" from the classic numeric palette)
05-14-2012 12:58 PM
Another option is the use of a table instead.
Here you have full control over the background color of each cell. That's what I typically use.