10-08-2009 08:26 AM
Using Labview 8.5.1 on Windows XP.
I want the current graphs of an XPGraph object saved to a file, using the "Export Image" precedure. The Path is valid and I set 'Always overwrite' to true. Still sometimes the procedure just does not generate any file at all.
Is there any thing I have to look for or any explaination, why it works sometimes, and sometimes it does not ?
Best regards,
Heinrich
Solved! Go to Solution.
10-09-2009 03:19 AM
Hi Heinrich,
could you please attach a simplified code of your vi, so I can try to figure out why it's not working correctly.
I have tried to export an "XY Graph object" on my PC (Windows Vista with LabVIEW 8.6.1) and I could export the image without any problems.
Best regards,
Florian
10-09-2009 03:42 AM
Okay, I removed all ten not essential stuff from the VI (now the GX-Graphs have no input).
10-09-2009 04:30 AM
Hi Heinrich,
I've tested your vi on a PC with XP and LabVIEW 8.5.1 and I encountered no problems.
To verify that it's not a problem of LV you can run your program and have a look at the folder you're saving the images to. If the date/time of your images changes every run but you can't see the newest images in your Browser it's maybe a caching problem within your Browser.
Please let me know if this solves your problem or not.
Best regards,
Florian
10-09-2009 04:43 AM
10-09-2009 05:08 AM
Is there just no new picture created or does it generate a blank one (without any data but maybe with you grid)?
Is this vi executed as an SubVI or the Main vi which always shows the FrontPanel?
Have you tried to delete the old pictures (if existing) before writing them again?
Regards
10-09-2009 05:18 AM
There is no file created at all.
The VI is a sub VI, the front panel is not seen.
I have not deleted the old pictures before writing new pictures (but set the "always overwrite" to true).
Since there are rare occations on which pictures are created, I guess there is some runtime-problem. What I do not understand is why there is no error created.
10-09-2009 07:04 AM
Hi,
could you please try the attached vi and check if you have the same problem. It just generates a random XY-Graph and saves it as a *.bmp file.
Do you have the same probleme when you're saving the *.html file?
Have you tried it on another PC?
Best regards,
Florian
10-09-2009 07:14 AM
Tried it and it works perfectly.
I have no problem with saving the .html file (or any other file, for various subVIs of my overall application save different information to the disk), it's just these two "Export Graph" calls that act out of line.
I tried the application on another system (also LabView 8.5.1 and Win XP (SP3)). The problem remained...
10-09-2009 07:39 AM
What you can do now is to replace your while loops with the loops out of my vi starting at the SubVI called "Check if File or Folder Exists.vi".
If you have replaced them, just Link the "Invoke Nodes: Export Image" to your FrontPanel-Elements and try it again.