Archived:Subpanel Implementation in LabVIEW NXG

Updated Oct 20, 2022

NI does not actively maintain this document.

This content provides support for older products and technology, so you may notice outdated links or obsolete information about operating systems or other relevant products.



  • LabVIEW

  • In LabVIEW, users are allow to display front panel of subVI in main VI's front panel, how to do the same in LabVIEW NXG?
  • LabVIEW NXG comes with Panel Container. May I know how to use it?
  • Is it possible to display subVI's front panel as a subpanel in LabVIEW NXG?

Yes. It is possible to display front panel of a subVI as a subpanel in your main VI of LabVIEW NXG just like when you are using LabVIEW. Panel Container needs to be used to achieve this. Kindly refer to the instruction below for its implementation:
  1. In your main Panel, place a Panel Container.
  2. In your main Diagram, place and connect both Open VI and Run
  3. Enter name of the subVI as input of Open VI's vi name input.
  4. Connect references from both Panel Container and Run's reference out to Insert VI's reference in and VI reference respectively.
  5. To ensure Panel Container displays subVI's front panel continuously, connect Insert VI's Error output to a while loop with button so user can determine when to stop the loop.
  6. Close all the references once done.
At the end of implementation, the Diagram of main Vi should looks like the following snippet:
Note: This image is a LabVIEW snippet, which includes LabVIEW code that you can reuse in your project. To use a snippet, right-click the image, save it to your computer, and drag the file onto your LabVIEW diagram.