Automatically Display Controls and Indicators of the subVI in Front Panel of the Main VI

Updated Dec 4, 2023

Environment

Software

  • LabVIEW

In many cases, it is useful to automatically create all the controls and indicators of one VI directly from the Block Diagram of another VI. This is mostly used when the subVI has the ability to execute independently (parallelly) inside another one.

To automatically create all the controls and indicators of one VI follow the below-mentioned steps.
  • Place the subVI into the block diagram of the main VI.
image.png
  • Right-Click on it and select All Controls and Indicators under the Create section.
image.png

This will automatically create all the controls and indicators of the subVI and place them on Front Panel.
image.png

Next Steps

If there is a need to create the controls and indicators of multiple VIs it is possible as well.
If there were created all the objects one right after, they will appear on the Front Panel in a messy arrangement
image.png
This is because LabVIEW arranges the Front Panel objects according to the Top-Left corner
image.png
To avoid this, scroll either vertically or horizontally to a blank area of the Front Panel, and after this place controls and indicators.
The method also works when placing the same subVI multiple times into the Main VI.