Table Of Contents

Creating a SubVI

Last Modified: September 27, 2017

  1. Right-click the diagram of an existing VI and select Create New SubVI to add an empty subVI node to the diagram. This creates a new .gvi file and adds it to the project. This file corresponds to the subVI node that appears on the diagram.
  2. Double-click the subVI node to begin adding code to the subVI.
  3. Click Edit Icon and add inputs and outputs to pass data in and out of the subVI. The inputs and outputs you add to the subVI icon must correspond to inputs and outputs on the diagram.

To add the new subVI as a node on other diagrams, locate the subVI in the Project Files tab and drag it to the diagram where you want to use it.


All instances of the subVI are automatically updated with most changes you make. However, if you remove or rearrange inputs and outputs on a subVI, wires attached to those inputs and outputs break in VIs that call the subVI. Fix the calling VIs by deleting the broken wires and rewiring the updated inputs and outputs.

Recently Viewed Topics