03-04-2015 08:56 AM
Hello al.
I am using vit files for call my indicators. Its working in my vi perfectly but when i try build exe with application builder, Vit files isnt work.
How can i fix this problem? You can see my call vit method from attachments.
Thanks.
Solved! Go to Solution.
03-04-2015 12:44 PM
Several years ago, we were also using .vit files to allow us to decide, at run time, which file to run. Worked fine in Development mode, failed in the Executable. What worked for us was abandoning the .vit and VI Server and using, instead, the Asynchronous Call routines (found on the Application Control palette).
Bob Schor
03-04-2015 01:28 PM - edited 03-04-2015 01:29 PM
Asynchronous Call by Reference is definitely the new/preferred way for launching multiple instances of the same VI or running different VIs dynamically (either from a static VI reference or dynamically loaded from disk).
It IS possible to create clones of .vit's and run them dynamically in an executable but you have to be careful about the paths etc. I can't remember from the code I saw exactly how it is done but we have applications where it is done in an executable (but now we use ACBR).
03-05-2015 07:34 AM
VITs are the old and busted, the new method is what others have mentioned, asyncronous VI calls. Here is an example I made a while ago which demonstrates how it can be done without bothing with the file path to the VIT on disk.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
03-05-2015 08:33 AM
Thanks for your helps.
Now i can call my vit files with Asynchronous Call function in my main vi.
But my application.exe still cannot call my vit files.
You can see my vi properties, caller vi and error screen from attachments.
03-05-2015 08:37 AM
I'm not sure if this is your problem, but don't use a VIT, just use a VI set to be reentrant.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
03-05-2015 08:58 AM
Yes You are right i changed all vit files to vi and its fixed.
Thank you for your helps.