LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I'd like to display a particular jpg or gif on-screen

I'd like to display a particular image (jpg,gif,whatever) on-screen based on the results of a series of calculations. What's the method for having LabVIEW call up an image? Anyone got any experience with this? Thank you for your help.
-Dan
Message 1 of 5
(3,050 Views)
Hi Dan

You have to use a "Picture indicator", and read the file with "Read JPEG File.vi"

Cheers.

Doc-Doc
Doc-Doc
http://www.machinevision.ch
http://visionindustrielle.ch
Please take time to rate this answer
Message 2 of 5
(3,050 Views)
Thanks, Doc-Doc, for your help. I found the Read JPEG file.vi, but I don't see an option for a picture indicator. More help, please?

-Dan
Message 3 of 5
(3,050 Views)
On your Front Panel, put a picture indicator found in Controls Palette - Graph - Controls - Picture. If it comes up as a control, change it to an indicator. On your block diagram, wire the jpeg file's path to the Read JPEG File vi (found in Graphics & Sounds - Graphics Formats - Read JPEG File.vi). Wire the image data output to Draw Flattened Pixmap input (found in Graphics & Sounds - Picture Functions - Draw Flattened Pixmap.vi). Wire this output to the picture indicator.
If you just want to display a constant picture on your Front Panel, just drag the picture file onto the Front Panel.
- tbob

Inventor of the WORM Global
Message 4 of 5
(3,050 Views)
Tbob, that's exactly what I needed. Thanks again to you and Doc-doc. Now I can begin making progress again.

-Dan
Message 5 of 5
(3,050 Views)