NI-SWITCH 19.0 .NET Framework 4.0 API Reference

Table of Contents

ConnectMultiple Method

  • Updated2023-02-21
  • 2 minute(s) read
ConnectMultiple Method
Creates connections between the channels that you specify in connectionList. Specify connections with two endpoints only or the explicit path between two endpoints.

Namespace:  NationalInstruments.ModularInstruments.NISwitch
Assembly:  NationalInstruments.ModularInstruments.NISwitch.Fx40 (in NationalInstruments.ModularInstruments.NISwitch.Fx40.dll) Version: 19.0.0.49152 (19.0.0.49152)
Visual Basic (Declaration)
Public Sub ConnectMultiple ( _
	connectionList As String _
)
C#
public void ConnectMultiple(
	string connectionList
)

Parameters

connectionList
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

ExceptionCondition
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.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.PathNotFoundException If the driver cannot find a path between two channels.
ObjectDisposedException The ConnectMultiple was accessed after the associated NISwitch object was disposed.

See Also

Log in to get a better experience