The VI Hierarchy window displays a graphical representation of all open LabVIEW projects and targets, as well as the calling hierarchy for all VIs in memory. Use this window to view the subVIs and other nodes that make up the VIs in memory and to search the VI hierarchy.
The VI Hierarchy window displays the following items:
Projects and targets
Static and dynamic subVI calls
Type definitions
Global variables
Shared variables
LabVIEW classes
XControls
Statecharts
Project libraries (.lvlib)
Express VIs
Static VI references
(MathScript RT Module).m files you reference from MathScript Nodes
The VI Hierarchy window displays a top-level icon to represent the main LabVIEW application instance, under which appear all the objects that are not part of a project or are not part of the application instance for a project. If you add a project, the VI Hierarchy window displays another top-level icon to represent the project. Each target you add appears under the project.
Complete the following steps to use the VI Hierarchy window.
Select View»VI Hierarchy to display the VI Hierarchy window.
Select from the following options:
Move the cursor over nodes in the VI Hierarchy window to display the name of each node in a tip strip.
Use the Positioning tool to select a VI or subVI node from the VI Hierarchy window and drag it to the block diagram. You also can select and copy one or more nodes to the clipboard and paste them on block diagrams.
Double-click a VI or subVI node to display the front panel of that VI.
Hold the <Ctrl> key and double-click a VI or subVI node to display the front panel and block diagram of that VI.
Right-click a blank area of the window and select Show All VIs from the shortcut menu to show the entire hierarchy.
Right-click a node and select Highlight Connections from the shortcut menu to highlight other items in the hierarchy that connect with the current node.
Right-click a project or a VI and select Hide All SubVIs or Show All SubVIs from the shortcut menu to alternately hide and show the subVIs in the hierarchy.
Right-click a project or a VI and select Show Immediate SubVIs from the shortcut menu to show the subVIs that immediately connect with a single node. This item is available only if all subVIs are hidden.
Right-click a node and select Show VI Hierarchy from the shortcut menu to display the hierarchy for a single node.
Right-click a node and select Show All Callers from the shortcut menu to highlight all callers of the node you select.
Right-click a paused VI and select Show Call Chain from the shortcut menu to highlight the call chain of the VI. The call chain is the chain of callers from the current VI to the top-level VI. This option is only available while debugging a running VI.
Use the buttons on the VI Hierarchy window toolbar to select more ways to view the VI hierarchy.
Note The VI Hierarchy window is a dynamic view of what is in memory. If you rearrange items in the hierarchy, LabVIEW does not save the new position of items. When you close and reopen the VI Hierarchy window, the positions regenerate.
To display instances of polymorphic VIs in the VI hierarchy, click the red arrow at the bottom of each polymorphic VI icon. The top-level VI indicates that it is linked to the polymorphic VI and to an instance of the polymorphic VI.
To switch to the Scrolling tool when automatic tool selection is enabled, press the <Ctrl-Shift> keys when the cursor is not over an icon in the window. (macOS) Press the <Option-Shift> keys. (Linux) Press the <Alt-Shift> keys.