NI-SWITCH 19.0 .NET Framework 4.0 API Reference

Content Type
Programming Language
Current manual
Table of Contents

Disconnect Method

Disconnect Method
Destroys the path between two channels that you create using the Connect or SetPath methods.

Namespace:  NationalInstruments.ModularInstruments.NISwitch
Assembly:  NationalInstruments.ModularInstruments.NISwitch.Fx40 (in NationalInstruments.ModularInstruments.NISwitch.Fx40.dll) Version: 19.0.0.49152 (19.0.0.49152)

Syntax

Visual Basic (Declaration)
Public Sub Disconnect ( _
	channel1 As String, _
	channel2 As String _
)
C#
public void Disconnect(
	string channel1,
	string channel2
)

Parameters

channel1
Indicates one of the channel name of the path to break.
channel2
Indicates the name of the other channel name of the path to break.

Exceptions

ExceptionCondition
Ivi.Driver.IviCDriverException When an underlying IVI-C driver was called to perform an action, the IVI-C driver action did not succeed.
Ivi.Driver.SelectorNameException A repeated capability selector is expected, but the driver does not recognise the provided name.
ObjectDisposedException The Disconnect was accessed after the associated NISwitch object was disposed.

See Also

Was this information helpful?