I wish to visualize in a picture control a matrix of 80 * 80, 16 bits gray
scale data. As I understand from the LV documentation and from some postings
on this ng, I can use for this the Flatten Pixmap.vi, followed by Draw
Flattened Pixmap.vi.
Because the input of the Flatten Pixmap.vi cannot be a 16 bit pixmap, first
of all I have to reduce the data for each pixel to 8 bits. OK, that's clear
to me.
Then, as I understood, I should connect an array of 256 elements to the
Color input of the Flatten Pixmap.vi. The Help says: Which pixmap input you
wire determines how LabVIEW interprets the value of this input.
Here comes my question: What should contain the elements of the array
connected to the Color input of the Flatten Pixmap.vi. that I get a gray
scale image (and not a colored one)?
Hi Victor, this is a simple example (LV 7.1) where I build a gray scale image using Draw Unflattened Pixmap. The color array is the same you would wire to the Flatten Pixmap vi.
Paolo
Paolo ------------------- LV 7.1, 2011, 2017, 2019, 2021