SwitchPath Class
- Updated2026-01-20
- 1 minute(s) read
Defines properties and methods which are used to connect and disconnect two channels.
Derives from
- SwitchSubObject
- IIviSwtchPath
Syntax
Namespace: NationalInstruments.ModularInstruments.NISwitch
public class SwitchPath : SwitchSubObject, IIviSwtchPath
Remarks
For more information, refer to NI Switches Help.
Thread Safety
All members of this type are safe for multithreaded operations.
Properties
| Name | Description |
|---|---|
| IsDebounced | Gets a value which indicates whether the entire NI-SWITCH device has settled since the last switching command. |
Methods
| Name | Description |
|---|---|
| CanConnect(string, string) | Verifies that you can create a path between channel1 and channel2. |
| Connect(string, string) | Creates a path between channel1 and channel2. |
| ConnectMultiple(string) | Creates connections between the channels that you specify in connectionList. Specify connections with two endpoints only or the explicit path between two endpoints. |
| Disconnect(string, string) | Destroys the path between two channels that you create using the Connect or SetPath methods. |
| DisconnectAll() | Breaks all existing paths. |
| DisconnectMultiple(string) | Breaks the connections between channels specified in disconnection list. If no connections exist between channels, NI-SWITCH returns an error. |
| GetPath(string, string) | Returns a System.String that identifies the explicit path created with Connect. |
| SetPath(string[]) | Connects two channels by specifying an explicit path in the pathList parameter, which is an array of System.String with the source channel as the first element and the destination channel as the next element. |
| WaitForDebounce(PrecisionTimeSpan) | Pauses until all created paths have settled. |