LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with Graph's 'Export Image' procedure

Solved!
Go to solution

The error still occures.

Usually never, when I use the "Highlight Execution" function, though...

 

Is it possible that there is a malfuction with the file access granted by WinXP.

0 Kudos
Message 11 of 19
(2,838 Views)

Hi Heinrich,

 

is it possible that you want to write the images to fast? Do you have, like I, a "Wait" inside the loops?

Do you only get the Error-Message which we have created in the loop or do you also get a popup message like this: "Error saving image to disk"?

Have you ever tried to delete the "old" image before creating the new one? If you haven't tried it, please implement this into your code just to be sure.

 

Regards

Schilli

0 Kudos
Message 12 of 19
(2,831 Views)

I copied the loops completly, including the "waits".

I also added a delete.

 

Is is possible that the pictures aren't created, if the VIs Frontpanel is not loaded ?

I tried several times, after I changed the SubVI-Call, so that the VI's Frontpanel is actually shown. That is not what I want, but since then, the pictures always were created....

0 Kudos
Message 13 of 19
(2,820 Views)

Hi Heinrich,

 

could you please add a picture of an exported image when it fails to export.

Yes, it is possible that the image isn't created when you only let it run as an SubVI, but then you should at least become a new image without any graph data, but with your axis shown.

You can try to add a wait in the second part of the sequence diagram, lets say 500ms or greater and try it again. 

 

 Please let me know if it works if you do integrate the wait.

 

Regards

 

0 Kudos
Message 14 of 19
(2,815 Views)

> could you please add a picture of an exported image when it fails to export.

 

In this case, there is no file. 

 

> Yes, it is possible that the image isn't created when you only let it run as an SubVI, but then you should at least become a new image without any graph data, but with your axis shown.

 

Nope. No picture at all. 

 

> you can try to add a wait in the second part of the sequence diagram, lets say 500ms or greater and try it again. 

 

I did that, but nothing changes. Actually 'file info' after the drawing procedure created an 'file not found' error.

So, there seems to be no file written at all, unless the VI is opend, when called.

I think, that's what I have to live with...

 

regards,

Heinrich

 

0 Kudos
Message 15 of 19
(2,799 Views)

Hi Heinrich,

 

I found a workaround which solves your problem.

 

You have to change some VI-properties of your SubVI in which you will create the pictures.

Inside the VI-properties choose the category "Window Appearance" and just click on "Customize". A new popup window will open in which you can check "Show front panel when called" and "Close afterwards if originally closed". If you have checked them just press OK. 

Then choose the category " Window Run-Time Position" and select at the Position drop down menu "Minimized".

Now press the OK-Button and save your SubVI.

 

Now everytime you SubVI is called it will open in a minimized window which will be closed when the images are written.

 

regards

Message 16 of 19
(2,792 Views)
Solution
Accepted by Heinrich Krebs
Thanks
0 Kudos
Message 17 of 19
(2,789 Views)

Hi Heinrich,

 

here is just another possible solution for your problem.

In this vi I just use "Get image" instead of "Export Graph". Just have a look on it and maybe do it that way.

 

regards

Schilli

Message 18 of 19
(2,781 Views)

I'm sticking to the workaround.

 

The alternative generates images that look screen elements, not just a plain diagramm. That is not printer friendly and changing all the color is too much trouble...

0 Kudos
Message 19 of 19
(2,768 Views)