LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Saving front panels in reports

I want to save my front panel to a file.  I have been using the "Append Front Panel Image to Report".  I then use the "Save Report to File" where I define a file path.  I have a VI working fine but it is saving not only an HTML file but also a .jpg.  When the VI is run again it will overwrite the HTML file (desirable) but generate a new .jpg.  The .jpg does not carry the file name I define in the "Save Report to File"
 
Why is it generating the .jpg and how do I keep it from doing so?
 
Is this the most straightforward way to save a front panel for archiving?
 
BTW LabView 6.1
0 Kudos
Message 1 of 3
(2,762 Views)
Hi CrisS,

I think if you dig into the hierarchy of your "Append Front Panel to Report.vi" you will see what is going on.  Open "Append Flattened Pixmap to Report.vi"  then "Append Image and Delete if Possible.vi". It is in here you will see a comment for HTML option. It says the following...

"We can't delete the temporary
image file because it is the file
that is being referenced by the HTML
file that is the report. We may end
up copying the image file when we save
the report, but by then it's too late to know
that it was a temporary file we generated."

Now if you save as a standard report apparently you will be able to delete the temporary JPEG image. I am not sure if you need HTML or not so that may not be option for you. I should also say I looked at this in LV 7.1 but I think it is the same in LV 6.

You also could keep doing what your doing and then write another program to "clean up" your extra JPEG files and your HTML if necessary.

Also I am not sure if this something that you need to do programmatically. That is to say how often do you want to archive your front panel. If the answer is seldom you could always use your OS's option of copying the current screen to clipboard and then edit, crop, and save with your favorite image editor Photoshop, The GIMP etc.

Hope this helps

Cheers,

--Russ
0 Kudos
Message 2 of 3
(2,757 Views)
Russ:
 
Thanks for the information.  I think I am headed down the path of deleting the .jpg's after they are created.
 
Regards, Cris
0 Kudos
Message 3 of 3
(2,735 Views)