Requires: VI Scripting
You navigate from a node to a wire any time that you use a reference to a node to obtain a reference to a connected wire. Navigating from a node to a wire is a navigation subtask that you can combine with other navigation subtasks to accomplish larger navigation goals. Refer to the navigation overview to learn more about how navigating from a node to a wire interacts with other navigation tasks.
This VI Scripting task requires the following objects:
|Node:Terminals||Visible Terminal Indexes||Index Array||Terminal:Connected Wire||Close Reference|
Before you start: Open the Navigating Nodes and Wires VI in the labview\examples\Application Control\VI Scripting\Finding and Modifying Objects directory for an example that illustrates each step of the following procedure.
Expand the procedure for more information about this specific example.
In the example, the scripting VI uses the Traverse for GObjects VI to obtain references to all the Function nodes in the target VI. The Case structure checks the style of each Function node so that navigation continues only from the Function nodes whose style is One Button Dialog.
In the example, the Node:Terminals property appears as Function:Terminals because the reference is a Function reference. Because Function is a subclass of Node, Function inherits the Terminals property of Node.
You must display additional VI scripting information in the Context Help window to cause the connector pane in the Context Help window to display a bracketed number next to each terminal. This number represents the index in the Terminals array where the reference to the corresponding terminal is stored.
In the example, the scripting VI requires the index of the button name input of the One Button Dialog function. According to the Context Help window for the One Button Dialog function, the index for that input terminal is 1.
Refer to the Navigation Overview VI in the labview\examples\Application Control\VI Scripting\Finding and Modifying Objects directory for a complete navigation example that includes navigating from a node to a wire and navigating across a structure.