10-01-2013 05:53 AM
I have a top level vi which calls a subvi which has all the plots I want to print in a report. This works as a vi as I can reference the subvi that I want to print the image of. When I make it an executable it no longer works, and even if I change the reference to request the image of the toplevel vi, so that there is a clearly viable (.exe) reference to print, it does not work. I can use file print window, but this does not give me the report. only the image. Any advice gratefully received
Solved! Go to Solution.
10-01-2013 09:08 AM
We need to see your code to be sure, but I'm guessing you are getting the VI reference using the path to the VI. Well when an EXE is made the path to the VI will not be the same. You should use a Static VI reference to get a reference to the VI, and then the location on disk doesn't matter.
Here is a quick example I did a while ago using replacing VITs in a similar way.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
10-01-2013 11:04 AM
that hit the spot perfectly. I thought it was about referencing but had no idea how to fix it. thank you