LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Can Template VI have more than one template controls in it?

Can I have more than one template control in a template VI?

In my application i need to have a basic VI with two type of controls. The data in the control differs from each other. I want to have the above setup as template and use it in my applicatoin development. Each time when i open the template VI (without any controls) from LabVIEW File Menu, It opens a new instance of the template VI.

If I add a templete control into the template VI. The template control also opens with a new instance along with the template VI.

Incase, If i add one more template cpontrol in the template VI, It does not open this control with a new instance. But the other control and the VI opens with a new instance.

Why does
not the second control open with new instance? Is there a limit in the no of template controls in a template VI?

Please help me understand better.
0 Kudos
Message 1 of 2
(2,622 Views)
This is a "feature". You can only instanciate one template (subVI or Control) on a diagram. There can be problems if many items would be instanciated: when you put the same control template twice in a VI, do you need two instaciations or reuse the same? That depends on the programmer's intent. The problem has been avoided allowing only one instanciation.


LabVIEW, C'est LabVIEW

0 Kudos
Message 2 of 2
(2,622 Views)