LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Grey scale for intensity chart

I need to map the color table for intensity charts or graphs to produce a grey scale.  Through experimentation, I came up with the attached vi.  Input the maximum Z value expected and the vi outputs the color table to be fed to the 'Color Table' property node.  I guess it could be 'Auto scaling' by taking a boxcar average of the incomming data (for a graph) or by averaging the data (for a chart).  Does anyone know of an easier or more elegant way of doing this?

Roy
0 Kudos
Message 1 of 3
(2,752 Views)

I don't think you can have better than a 8bit greyscale (256 values). Your values are RGB, with 8 bits for each color. For greyscale, the RGB calues must be identical.

The only thing you need to do is to use the marker value property and set the lowest number color  to x00000000 and the highest to x00FFFFFF and set interpolate colors to true.

0 Kudos
Message 2 of 3
(2,748 Views)
The color table property is fo paletted coors with 256 entries. You don't need it for greyscale.
 
Attached is a simple intensity graph implementation that automatically creates a greyscale from the lowest to highest value in your 2D data array. Modify as needed.
Message 3 of 3
(2,741 Views)