LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with Graph's 'Export Image' procedure

Solved!
Go to solution

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

Message 1 of 19
(4,637 Views)

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

0 Kudos
Message 2 of 19
(4,610 Views)

Okay, I removed all ten not essential stuff from the VI (now the GX-Graphs have no input).

0 Kudos
Message 3 of 19
(4,605 Views)

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

0 Kudos
Message 4 of 19
(4,599 Views)
I already checked that. Sometimes new pictures are created (I see the last modified entry change when watching the folder I save to) somethimes just no picture is created. With no error or explanation why.
0 Kudos
Message 5 of 19
(4,596 Views)

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

0 Kudos
Message 6 of 19
(4,586 Views)

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.

0 Kudos
Message 7 of 19
(4,583 Views)

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

0 Kudos
Message 8 of 19
(4,570 Views)

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...

0 Kudos
Message 9 of 19
(4,566 Views)

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.

 

0 Kudos
Message 10 of 19
(4,563 Views)