LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

loading vi´s (panel) twice or n-times at one time

Hello Gurus,

I have a question on Labwiew, is it possibile to load in a vi dynamically more than one subvi´s of the same type on runtime?
For Example: there is a button on the Main Vi panel, if there is a Click on this button a sub Vi is called, running and displayed on screen. That means if there are three clicks there should be three panels.

Only if possible
Is there a possibliity to create Child Panels (SUBVIS)in the main panel (Caller Vi)

Last question?
is LAbVIEW supporting a Document/View architecture like the mircosoft MFC classes?
0 Kudos
Message 1 of 3
(2,699 Views)
Yes, yes, and sort of.

The trick to getting multiple instances of the same VI on the screen is to use a VI Template. Open a VI Server reference to the template and you will get a reference to a VI based on the template, but not the template itself (unless the template is already in memory). Using the reference, wire up an invoke node to call the Run method and then a property node to open the front panel. Rinse and repeat as needed for the number of instances desired.

Child windows are possible by making some calls to the Win32 API. Here's a link where you can find some demo code by Jack Hamilton -> www.LabUseful.com

The whole Document / View architecture could probably be done with some fancy footwork and more API calls.

Remember that there
's always the Alliance Members. We can give you access to our gurus.

Daniel L. Press
PrimeTest Corp.
www.primetest.com
Message 2 of 3
(2,699 Views)
Hello Dan,

Thank you for anwser and espeacially the link´s.
Now I have a futher question on you.

Have you ever tried to implement a Vi - Child/Parent
Panel into a doc/view architecture of VC++

I was only able to do this with the dialogbox of VC++

greetings J.Dodek
0 Kudos
Message 3 of 3
(2,699 Views)