LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

printing front panel images of subvis from executables

Solved!
Go to solution

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

0 Kudos
Message 1 of 3
(2,225 Views)
Solution
Accepted by topic author lucylit

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.

 

http://forums.ni.com/t5/LabVIEW/building-an-executable-with-vits-with-Labview-2011/m-p/2384984#M7404...

0 Kudos
Message 2 of 3
(2,193 Views)

that hit the spot perfectly.  I thought it was about referencing but had no idea how to fix it.  thank you

0 Kudos
Message 3 of 3
(2,179 Views)