Mode
- Updated2026-01-20
- 1 minute(s) read
Specifies what happens to existing connections that conflict with the connections you make in a List. For example, if CH1 is already connected to CH2 and the List instructs the switch to connect CH1 to CH3, this attribute specifies what happens to the connection between CH1 and CH2. If the value of this attribute is None, the switch takes no action on existing paths. If the value is BreakBeforeMake, the switch breaks conflicting paths before making new ones. If the value is BreakBeforeMake, the switch breaks conflicting paths after making new ones. Most switches support only one of the possible values. In such cases, this attribute serves as an indicator of the device's behavior.
Syntax
Namespace: NationalInstruments.ModularInstruments.NISwitch
public SwitchScanMode Mode { get; set; }
Returns
The values for the property are defined in SwitchScanMode.
Exceptions
| Type | Description |
|---|---|
| System.ObjectDisposedException | The Mode was accessed after the associated NISwitch object was disposed. |