Home > Support > NI Product Manuals > LabVIEW Communications System Design Suite 1.0 Manual
  1. Highlight the section of code you want to reuse.
  2. On the VI tab, select Create from Selection. LabVIEW creates a new .gvi file and adds it to the project. This file corresponds to the subVI node that appears on the diagram. The subVI node includes inputs and outputs for every wire that enters and exits the highlighted section of code.

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

Note  

LabVIEW automatically updates all instances of the subVI with most changes you make to the subVI. 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.