10-17-2006 04:05 AM
I need to insert subvi's front panel into the main vi front panel. It can not be done by inserting the subvi into a subpanel, because i want (need) to see the subvi's front panel in design mode. I also can not make a .ctl from this subvi, because i need to execute some code in the subvi.
Another question: is there any possible solution how to run two or more same subvi at the same time (for example in 2 subpanels) ?
Thanks
10-17-2006 04:56 AM
10-18-2006
02:16 PM
- last edited on
08-15-2026
12:34 PM
by
Content Cleaner
baracuda,
In future you'll get quicker responses if you try to post in the most appropriate forum (in this case the LabVIEW forum as Roberto pointed out).
With regards to this issue there is no way other than a subpanel to embed one VIs front panel in anothers. Perhaps if you explain a little about why you need to do this we could suggest some other approach which may give you the results you desire.
There is a way to have multiple instances of the same subVI open in different subpanels. If you save your subVI as a *.vit (VI Template) file each instance of that VI is created in its own memory space. This will allow each instance of the subVI to have it's own independant front panel.
You might find this knowledgebase entry useful:
Differences Between Reentrant VIs, VI Templates, and Dynamic VIs
Regards,
Simon H
Applications Engineer
National Instruments