LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

IMAQ arraytoimage example

Hi all,
Does anyone know of a Labview example utilising the IMAQ ArrayToImage funtion?
The LabView help files in this instance are not terribly "helpful".

Thanks in advance.
Stephen.
0 Kudos
Message 1 of 9
(8,020 Views)
Hello,
An example of using the IMAQ Array to Image VI would be to create an 2D array of pixel values which is data type I16 or U8 or floating point values. Then input the array into the appropriate input parameter of the IMAQ Array to Image VI corresponding to your data type: I16, U8 or floating point. You only have to select one of the parameter types. You will also need to use an IMAQ Create to create a new image and feed that image into the image input for the IMAQ Array to Image VI.

Regards

Russell Blake
Applications Engineering
National Instruments
Director of Engineering
G Systems, www.gsystems.com
Certified LabVIEW Architect
Certified LabVIEW Embedded Systems Developer
Certified Professional Instructor
GCentral
0 Kudos
Message 2 of 9
(8,020 Views)
As far as I can tell, I have done exactly as is recommended, but no image appears at the output. I haven't figured out a way of debugging this either. The vi is too simple !
Regards
Chris Walker
0 Kudos
Message 3 of 9
(8,020 Views)
Can you post your VI here so that we can see what is going on?

Thanks
0 Kudos
Message 4 of 9
(8,020 Views)
Brian,
Thanks in advance for your help on this. I am trying to display an image as a eries of gray levels. The gray level depends on the value in the array. I suspect I am misinterpreting how things are working as there doesn't seem to be anywhere to set the gray levels or to set what palette is needed if you want to work in color.
Best regards
Chria Walker
0 Kudos
Message 5 of 9
(8,020 Views)
I'm not sure what is in this VI, but Labview crashes when trying to open it up. Any ideas why?
0 Kudos
Message 6 of 9
(8,020 Views)
Hi!

Corrected example re-attached to the message.

with best regards...
0 Kudos
Message 7 of 9
(8,020 Views)
Andrey,
Thanks very much for your help. I'd give four stars, but it doesn't seem possible on replies to comments.
Regards
Chris Walker
0 Kudos
Message 8 of 9
(8,020 Views)
Brian,
I don't understand why Labview crashes, but Andrey Dmitriev seems to have found a solution. Thanks for your time.
Best Regards
Chris Walker
0 Kudos
Message 9 of 9
(8,020 Views)