LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to draw 2D 16 bit data

Hi,
I have a 400x400 array of signed 16 bit data values (ranging from -32767 to + 32766). I would like to draw a 2D image of my data, representing my data values by a color scale. How do I go about this? Is there any way of defining your own color scale, eg one that ranges from black(-323767) over red(0) to yellow(+323766)?
 
In advance thanks
 
Georg
0 Kudos
Message 1 of 5
(3,385 Views)
The Intensity Graph should work for you.
Just change the limits on the color ramp from the standard 0-100 to your limits.
And also change the colors for the markers at the extremes and at 0.

Message Edited by nyc on 02-07-2006 09:16 AM

Message 2 of 5
(3,380 Views)

Ok, thanks.

Buy I was more looking for at way to show the data in a bit-map sort of way. I have many such data files and I want to be able to show many of them in a kind of  thumbnails way.

Georg 

0 Kudos
Message 3 of 5
(3,363 Views)
Here's a variation on some code some once posted (I think it was DFGray) which uses the Color to RGB conversion VIs to basically do what you want. This was meant to be called as a subVI where you can use it to get a smooth transition between two colors. You can take the calculation part and use it as a basis for a piece of code which will accept an array of clusters (each cluster with a color value and a corresponding numeric value and calculate it) and modify your 2D array to LV colors. Then, you simply use the picture VIs to plot your array to a picture using these 24 bit color values.

___________________
Try to take over the world!
0 Kudos
Message 4 of 5
(3,357 Views)

Thanks. That really helps.

Best regards,

Georg

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