LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

embed image on front panel

I am using an ROI to save a portion of an image. This info I am saving in a file using IMAQ write image and vision info.vi into a PNG file format. Now I want to display this PNG file as a picture on the front panel. This does not work however. I tried doing the same with JPEG and BMP files and it works. Can someone please tell me what is wrong
0 Kudos
Message 1 of 5
(3,020 Views)
Can you view the png file with other application (IE)? If the file is png format, it should work with "Drow Flattened Pixmap.vi". The Image Data input is obtained through "Read PNG File.vi".

Joe
0 Kudos
Message 2 of 5
(3,020 Views)
I already did do what u asked me to do and I can see the PNG file in Internet Explorer as well. Is there anything else that could be wrong?
0 Kudos
Message 3 of 5
(3,020 Views)
What's the color depth of the PNG file? Picture control doesn't support 16 bit images. JPEG is 24 bit. Common BMP is 24 bit or 8 bit.

Try Image Toolbox. It might work.

http://www.geocities.com/gzou999/imgtool.htm
George Zou
0 Kudos
Message 4 of 5
(3,020 Views)
You can also try the following example program that will read jpeg/png/bmp images into a LabVIEW Picture Control:
http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=B123AE0CBA49111EE034080020E74861&p_node=DZ52035&p_source=External

If this still doesn't work, post your image here so that we can take a look at it.

Julie S
Applications Engineer
National Instruments
0 Kudos
Message 5 of 5
(3,020 Views)