Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Insert VI Method (Not in Base Package)

LabVIEW 8.2 Help
August 2006

NI Part Number:
371361B-01

»View Product Info

Method of SubPanel.

Loads a VI in the subpanel control without changing the state of the VI. If the front panel of the VI you want to load is open or if you loaded the front panel in another subpanel control on the same front panel, LabVIEW returns an error, and you cannot load the front panel in the subpanel control unless the front panel is reentrant. You also cannot load the front panel of a VI in a remote application instance, and you cannot load front panels recursively.

After you use this method, the front panel is in memory. Use the Close Reference function to close the VI reference. The front panel remains in the subpanel control until you stop the VI that contains the subpanel control. You also can use the Remove VI method to unload the VI in the subpanel control. Examples

Parameters

NameDescription
VI RefReference to the VI whose front panel you want to load.

You can use the Open VI Reference function to obtain a reference to another VI.

Remarks

The following table lists the characteristics of this method.

Settable when the VI is runningYes
Need to authenticate before useNo
Loads the block diagram into memoryNo
Remote access disallowedNo
Loads the front panel into memoryNo
Must wait until user interface is idleNo
Available with control VIsNo
Available with global VIsNo
Available with strict type definitionsNo
Available with polymorphic VIsNo
Available in Run-Time Engine and Real-Time Operating SystemYes (Read/Write)

Examples

Refer to the following VIs for examples of using the Insert VI method:

  • labview\examples\general\controls\subpanel.llb\Subpanel Viewer.vi

     

  • labview\examples\general\controls\subpanel.llb\Simple Subpanel.vi

     

  • labview\examples\general\controls\subpanel.llb\Subpanel Templates.vi

     


Resources


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit