I've got an application in which I dynamically open a *.vit (VI template). I can open several instances of a user-configurable graph. It works great when running in the Labview environment, but when I create an executable... it doesn't work. Is there something special I need to do to make this work?
Path... that's a good question. In the Labview environment, when I use the "Open VI reference" VI, I have only the template name "RTdisp.vit" in the path constant. I assume it just uses the local directory in this case. Perhaps I need to be more specific in the location of the template. Any suggestions?
you need to make sure its pointing to the correct place... try hard coding the path and make sure that works then you can use the strip path function etc... to do it automatically in the program. LabVIEW handles the paths a little differently when the app is built....
if you have a VI called path test.vi on the root (c:) and check its path from the development enviroment its path will be c:\path test.vi , however , if you build it to an executable its path will be c:\path test.exe\path test.vi
I hard coded the path to RTdisp.vit. It worked in the Labview environment, but when I created an executable for my application and I call RTdisp.vit dynamically using "Open VI Reference", I get an error:
Error 1003 occurred LabVIEW: The VI is not executable.
Can you call a template (*.vit) from an executable without running Labview?