Disconnect(string, string)
- Updated2026-01-20
- 1 minute(s) read
Destroys the path between two channels that you create using the Connect or SetPath methods.
Syntax
Namespace: NationalInstruments.ModularInstruments.NISwitch
public void Disconnect(string channel1, string channel2)
Parameters
| Name | Type | Description |
|---|---|---|
| channel1 | string | Indicates one of the channel name of the path to break. |
| channel2 | string | Indicates the name of the other channel name of the path to break. |
Exceptions
| Type | Description |
|---|---|
| Ivi.Driver.SelectorNameException | A repeated capability selector is expected, but the driver does not recognise the provided name. |
| Ivi.Driver.IviCDriverException | When an underlying IVI-C driver was called to perform an action, the IVI-C driver action did not succeed. |
| System.ObjectDisposedException | The Disconnect was accessed after the associated NISwitch object was disposed. |