Setting Source and Configuration Channels
- Updated2025-11-20
- 3 minute(s) read
To edit a channel type, use the niSwitch Property Node or one of the niSwitch_SetAttribute functions.
The following figure represents a source channel (ab0) and a configuration channel (ch0) in the niSwitch Property Node.
Source Channels
Set a source channel to indicate to the driver that a signal source is connected to the channel. NI-SWITCH does not allow two user-defined source channels to be directly or indirectly connected.
Configuration Channels
Set a configuration channel to allow NI-SWITCH to use the channel for internal path creation. Creating a column-to-column connection will fail in a matrix if a row channel is not set as a configuration channel.
Creating a Route Example
Refer the matrix in the following figure, and complete the following steps to create a route connecting C0 and C2.
- Create a path between C0 and C2—Use the niSwitch Property Node or the appropriate niSwitch_SetAttribute function to set r0 as the configuration channel.
- Create a route—Run the niSwitch Connect Channels VI or the niSwitch_Connect function with channel 1 and channel 2 set to c0 and c2, respectively.
- Repeat steps 1 and 2 for rows r1 and r2 as configuration channels.
The following figures represent the routes you can create using R0, R1, and R2 as configuration channels, respectively.