niSwitch Get Channel Name VI
- Updated2025-10-06
- 2 minute(s) read
Returns the channel string that is in the channel table at the specified index.
Use this VI in a For Loop to get a complete list of valid channel names for the switch module. Use the Channel Count property to determine the number of channels.
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.
channel string
—
channel string returns the channel string that is in the channel table at index.
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
—
channel string
—
error out
—