GetPath(string, string)
- Updated2026-01-20
- 1 minute(s) read
Returns a System.String that identifies the explicit path created with Connect.
Syntax
Namespace: NationalInstruments.ModularInstruments.NISwitch
public string[] GetPath(string channel1, string channel2)
Parameters
| Name | Type | Description |
|---|---|---|
| channel1 | string | Indicates one of the channel name of the desired path. |
| channel2 | string | Indicates the name of the other channel name of the desired path. |
Returns
Returns a System.String that identifies the path between the desired two channels.
Exceptions
| Type | Description |
|---|---|
| Ivi.Swtch.NoSuchPathException | This exception is used when no explicit path exists between the two channels.. |
| System.ObjectDisposedException | The GetPath method was accessed after the associated NISwitch object was disposed. |