LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

saving an image and data file

Am am current developing a program similar to the one below using an elvis module.
I am trying to save am image of the graph but, the save image window keeps popping up because of the loop.
I just want to be able to click a button and then save the image to a file without the save window popping up every time. 
0 Kudos
Message 1 of 5
(2,628 Views)
Then put a Boolean with a mechanical action of Latch When Released on the front panel and on the diagram, wire a case statement to it with your save code inside the true case. A case structure is a pretty fundamental structure in LabVIEW. If you use one of the Express VIs like Report or Write LabVIEW Measurement File, it's even simpler. You just wire the Boolean to the Enable input.
Message 2 of 5
(2,621 Views)
Sorry am new to this, tried doin what you said but it didn't seem to work.
0 Kudos
Message 3 of 5
(2,606 Views)

Hi cdwyer,

In your second example's block diagram, you need to have the save button terminal and the associated case structure within your main loop, otherwise the button/case structure is only read/executed the one time.

An additional tip: When saving "computer graphics", like LabVIEW panels or diagrams, it's nearly always better to save them using the PNG format. PNG format is both compressed (small file sizes) and yet also "lossless compression" (no image degradation) - also it's usually preferable to use true colour (24 bit colour depth).

JPEG file type is a "lossy" type of compression that is designed for photographics - it will cause blurring and colour distortions when used with computer graphics.

Mark.

P.S. Worth a few star ratings? Smiley Wink

Message Edited by Mark H on 02-02-2006 12:11 PM

Message 4 of 5
(2,603 Views)
Cheers mark ur a star urself!!
0 Kudos
Message 5 of 5
(2,589 Views)