LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

template in menu

Hello

I have some templates that i want to use in a menu, but there are some problems.

1. Normally when i open a template using "select a vi.." the template becomes a vi, the template creates a copy of itself as a vi. (sometimes however, a template is created with a blue T)

2. When these templates are in a submenu in the "user librar.." for instance, then when i open the template, the template itself is created on the block diagram (with a blue T).

What i want is to have the templates in a menu, and when they are opened, they creates copies of themselves as vi's.


Is there a way to change this? or am i doing something wrong? I just don't understand what decides wether a template is created as a vi or as a vit ??

Thanks
0 Kudos
Message 1 of 4
(2,682 Views)
I hope you are not keeping your templates in vi library or user library. Templates have their own directory: C:\Program Files\National Instruments\LabVIEW 7.1\templates

aartjan
0 Kudos
Message 2 of 4
(2,671 Views)
Thanks

Yes, i'm keeping them in a user library. That is what they really are, ordinary subroutines. BUT, i want them to be copyed each time i insert a new one. That allmost work when they are templates. Will it work everytime when they are in the correct template directory? How can i then insert new ones?
0 Kudos
Message 3 of 4
(2,634 Views)
Make sure you use the .vit extension for your templates. Only then it will create a new vi when opening it.
(vit stands for vi template.)
It only opens as a new vi if you use the new.. option. Otherwise you open the template itself.

aartjan
0 Kudos
Message 4 of 4
(2,627 Views)