Creates connections between the channels that you specify in connectionList. Specify connections with two endpoints only or the explicit path between two endpoints.

Syntax

Namespace: NationalInstruments.ModularInstruments.NISwitch

public void ConnectMultiple(string connectionList)

Parameters

NameTypeDescription
connectionListstring

Specifies a list of connections between channels to make. NI-SWITCH validates the connection list, and aborts execution of the list if errors are returned.

Exceptions

TypeDescription
Ivi.Swtch.ExplicitConnectionExistsException

If the two channels are already connected.

Ivi.Swtch.IsConfigurationChannelException

If a channel is a configuration channel. Error elaboration contains information about which of the two channels is a configuration channel.

Ivi.Swtch.AttemptToConnectSourcesException

If two channels in a single connection are connected to a different source. Error elaboration contains information about the connection channel with errors.

Ivi.Swtch.CannotConnectToItselfException

If two channels in a single connection are the same channel.

Ivi.Swtch.PathNotFoundException

If the driver cannot find a path between two channels.

System.ObjectDisposedException

The ConnectMultiple was accessed after the associated NISwitch object was disposed.