05-26-2016 04:48 AM - edited 05-26-2016 04:49 AM
Hello!
I have a VI (saving overall graph image) that saves the image of a graph with an invoke node.
Then I attached that image into an excel report. However the image sometimes is saved and sometimes don't.
Usually if I am using a probe inside the VI it will save the image.
I thought that with error wire I will force the execution of saving graph image first and then adding it to the report but it seems it is not enough...
Do you have any idea why this is happening>
Thanks in advance!
Solved! Go to Solution.
05-26-2016 05:26 AM
Hi jess
As Global Variables are Missing and No data, Not able to run and Check for the Root Cause. Still Modiifed the Code. Please run and Confirm. I Modiifed in LV 2015. If u dont have the latest please refer png File.
If its Working During Probe. it may be due to timing Issue with the Calling Vi
Kind Regards
Palanivel Thiruvenkadam
05-26-2016 06:14 AM
Thank you a lot! It was a much better implementation indeed!
05-26-2016 10:53 AM
@jess1006 wrote:Hello!
I have a VI (saving overall graph image) that saves the image of a graph with an invoke node.
Then I attached that image into an excel report. However the image sometimes is saved and sometimes don't.
Usually if I am using a probe inside the VI it will save the image.
I thought that with error wire I will force the execution of saving graph image first and then adding it to the report but it seems it is not enough...
Do you have any idea why this is happening>
Thanks in advance!
Palanivel code is cleaner but do not answer the issue. The error wire force the execution order but in this case it just send the command to export the image to a file, it will not wait for the transfer to be completed. You can probably solve this issue by adding a small delay after the export command.
Ben64