LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Path when using Open VI Reference in a built .EXE

I am using Open VI Reference to start a VI that will continuously run in a separate window from my main user interface window. (Best way to accomplish this?) That VI is in the path

<project directory>\Stats\Usage Watcher.vi . When run from LabVIEW, this works fine. But I use application builder to build a .exe file, it can no longer find its VI. Error 7, file not found. What is the correct form of the path when the VI's are built into an executable? I really wish the documentation for Open VI Reference would explain this, but it doesn't.

 

Init Usage Watcher.png

0 Kudos
Message 1 of 2
(2,993 Views)

I normally use a static VI reference + VI Name to launch the VI, rather than a path. Use the VI Name property of the static VI reference to pass into Open VI Reference. Also make sure the referenced VI is included in your build spec under always included files. See the example here: https://labviewcoder.com/2016/07/06/quick-tip-asynchronously-launching-vis-the-right-way/




Certified LabVIEW Architect
Unless otherwise stated, all code snippets and examples provided
by me are "as is", and are free to use and modify without attribution.
Message 2 of 2
(2,958 Views)