02-04-2019 10:01 PM
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.
02-05-2019 01:48 AM
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/