LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Handling VI templates with executables (after Application Builder)

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?

Thanks,

Peter
0 Kudos
Message 1 of 8
(3,449 Views)
this is just a wild gues on my part.... is the path correct ??
0 Kudos
Message 2 of 8
(3,443 Views)
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?
0 Kudos
Message 3 of 8
(3,442 Views)
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

Dan
0 Kudos
Message 4 of 8
(3,440 Views)
well look at that .... it inserts little smiley faces 🙂
0 Kudos
Message 5 of 8
(3,437 Views)
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?
0 Kudos
Message 6 of 8
(3,433 Views)
I neglected to add the *.vit to the "dynamically called VI's" in Application Builder. It works now. Thanks for you help Dan.
0 Kudos
Message 7 of 8
(3,431 Views)
ok... glad you got it all sorted out... sorry i was away from the computer for awhile

have a good weekend

Dan
0 Kudos
Message 8 of 8
(3,425 Views)