11-30-2015 05:28 AM
I have 16 * 16 sensors, I read the data into memory.
I save the data in memory row after row.
I wanted to know how I can display the data and create an image.
Thank you
11-30-2015 06:31 AM
What kind of image? What kind of data are coming from the sensors? Are you doing this yourself, to learn how to use LabVIEW, or are you hoping to hire a LabVIEW expert? [For the latter, see the Forum entry for LabVIEW Developers Seeking Employment]. If you are learning LabVIEW, show us the code you've already developed (by attaching the VI, not a picture of the VI).
Bob Schor
11-30-2015 06:58 AM
The information is binary.
I keep the information in the aray i have 256 samples.
I need to display the data from the sensors .
I can not understand how I show a graph of X (Line) Y (column) the results of the sensors.
For example, the first call I received from the first sensor( i have 256 sensors, 16*16) of the XY graph 00010010, for example, if i read 0000000 then aray in the graph is will be white and if 11111111 It is black.
My question is how I build this graph
12-01-2015 10:08 AM
Hello Fnachum,
It sounds like you have a 16x16 array of binary data stored in a U8 format, correct? If you would like to convert this data to a 16x16 image, I would suggest looking at the functions available in the Programming->Graphics & Sound->Picture Functions Palette. Specifically, "Draw Unflattened Pixmap" will take a 2D array of U8 and output a grayscale image. The image can then be displayed in a "2D Picture" Indicator.
If you wish to save the image, you can just use the "Flatten Pixmap" to convert your image from the 2D array to image data, then the "Write JPEG File" to save the image as a JPEG. Both of these funcations can be found under the Programming->Graphics & Sound->Graphics Formats Palette. There are identical functions for BMP and PNG files here as well.
12-01-2015 11:24 AM
Another option is to plot an Intensity Graph (which you can find on the Front Panel Graph palette). It works on U8 data, allowing you to choose a different (up to 256) color for each value. There are both Help and Examples (see LabVIEW Help).
Bob Schor
12-03-2015 01:58 PM
I made a 2D array of 16 to 16.
I try to present the results on a picture but the picture I get very little.
How do I increase the image to size that I want?
I attach the file I made.
12-03-2015 02:29 PM
Why do you have Waits in the inner For loops? And why do the Wait times grow by factors of 10?
Of course you will get a tiny 16x16 pixel picture if you try to plot a 16x16 array as pixels.
Go to LabVIEW Help, get help on Graphs (all kinds), Pictures (all kinds), do some Web searching to learn how to use these functions.
Bob Schor
12-03-2015 02:38 PM
Are you looking for something like this (a 16x16 plot of random numbers from 0 to 100)?
Bob Schor
12-03-2015 02:49 PM
Yes, it looks ok.
Thanks for the help