niSwitch Get Relay Name VI
- Updated2025-10-06
- 2 minute(s) read
Returns the relay name that is in the relay list at the specified index.
Use this VI in a For Loop to get a complete list of valid relay names for the switch module. Use the Number of Relays property to determine the number of relays.
Related Topics

Inputs/Outputs
instrument handle
—
instrument handle identifies a particular NI-SWITCH session established with the niSwitch Initialize With Topology VI, the niSwitch Initialize With Options VI, or the niSwitch Initialize VI.
index (1)
—
index is a 1-based index into the channel table. The default value is 1. The maximum value is equal to the value of the Channel Count property.
error in (no error)
—
error in describes error conditions that occur before this node runs. This input provides standard error in functionality.
instrument handle out
—
instrument handle out identifies a particular NI-SWITCH session established with the niSwitch Initialize With Topology VI, the niSwitch Initialize With Options VI, or the niSwitch Initialize VI and used for all subsequent NI-SWITCH calls.
relay name
—
relay name specifies the name of the relay. Examples of valid relay names are ch0, ab0, 1wire, and hlselect Refer to Devices for a list of valid relay names for the switch module.
error out
—
error out contains error information. This output provides standard error out functionality. |
instrument handle
—
index (1)
—
error in (no error)
—
instrument handle out
—
relay name
—
error out
—