LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Template in runtime

What happens when a VI template (.vit) is opened in the LabVIEW Runtime? Does it open a file with a new name as it does in the development environment?

Allen
0 Kudos
Message 1 of 5
(3,005 Views)
Hello Allen,

The LabVIEW Runtime Engine can only run executables built by LabVIEW. It can run neither VI�s nor VI templates.

Have a nice day!

Robert M
Applications Engineer
National Instruments
Robert Mortensen
Software Engineer
National Instruments
0 Kudos
Message 2 of 5
(3,005 Views)
Robert,

Perhaps my question was not stated clearly. If I build an executable containing VI's and VI templates, the main VI in the executable can open a VI template that is contained in the executable. Since my original post I have performed experiments that indicate that a VI with a new name is indeed generated from the template VI.

Thanks for the input.

Allen
0 Kudos
Message 3 of 5
(3,005 Views)
I have also built applications that open VI templates, but I have noticed that the new VI is not editable when opened from an exe. i.e. the name can not be changed. This caused a bug in an application I developed. In the development environment I used VI server to open a template and renamed it to something meaningfull, all was well. Then we built an EXE, all seamed OK at first, but we could not find the VIT's later in the app. We found that the VIT's were not getting renamed because they were not editable(runtime environment and all). Solution: don't rename, just remember the name Labview gave it when it opened. 😐
0 Kudos
Message 4 of 5
(3,005 Views)
Allen,
The answer is YES as you have figured out yourself, but you should be aware that there are some differences that could catch you off guard if you use this technique a lot. The most important is that the new VI created from the template will not be editable when opened from an EXE. See my reply to your earlier comment
Kaz
0 Kudos
Message 5 of 5
(3,005 Views)