SubVI
SubVIs are VIs that are called from another VI. This is accomplished by:
- Connecting controls and indicators to a VI's Connector Pane
- Dropping that VI on a Block Diagram of another VI
- Attaching Wires to its inputs and outputs
There is no difference between a VI and a SubVI except the relationship in Calling Heirarchy.
Usage
SubVIs work as functions on textual programming languages. Instead of having the same code writing in many parts of the code, we put it in VI's so it can be called every time we need.
Best Practices
Create a VI description at VI Properties -> Documentation. The description appears in the Context Help when you hover on the VI in the block diagram.
For more Best Practices for SubVIs use, look at Icon Editor and Connector Pane pages.