|Download Help (Windows Only)|
You can use connection lists and disconnection lists with niSwitch Connect Channels (Multiple) and niSwitch Disconnect Channels (Multiple) to create strings of one or more switching operation. For lists with multiple operations, commas separate each operation. NI-SWITCH validates the connection and disconnection lists, and aborts execution of the list if errors are returned.
Set a channel as a configuration channel to allow NI-SWITCH to use the channel for internal path creation. If a path between two channels includes one or more channels, the intermediate channels should be set as a configuration channel. If multiple intermediate channels exist, and the channel type is set as a configuration channel, NI-SWITCH selects the intermediate channel to use.
|Note Configuration channels may also be referred to as "reserved for routing" in other switch APIs.|
Switching operations can connect and disconnect channels in one of two ways. Refer to the following table to determine the switching operation.
|Specify Endpoints||channel1 -> channel2
||NI-SWITCH searches for an available path between endpoints to connect or disconnect. The two specified channels must be on the same device, and an available path must exist between them.
|Specify Explicit Path||[channel1 -> channel2 -> channel3]
||You define the endpoints and any intermediate channels of the path.*|
|*The order of operations does not guarantee order of execution. To ensure a specific order, use multiple connection and disconnection lists.|
|Tip NI-SWITCH ignores white space and line returns. Use these to format the appearance of lengthy lists.|
If you want to create a connection or disconnection list with switching operations that specify endpoints and explicit paths, separate the switching operations with commas.
Syntax: Operation1, Operation2, Operation3
Example: c0 -> r0, [c1 -> r2 -> c5], r0 -> c4
If a path exists between channel0, com0, and AB0, you can connect channel0 to AB0 by setting the channel type of com0 as a configuration channel.
Syntax: channel1 -> channel2
Example: channel0 -> AB0
If you want to connect column 1 and column 5 of a matrix, and use row 2 to complete the connection, you must set the channel type of row 2 to a configuration channel before the connection is made.
Syntax: [channel1 -> channel2 -> channel3]
Example: [c1 -> r2 -> c5]