Mode Property
- Updated2023-02-21
- 3 minute(s) read
Specifies what happens to existing connections that conflict with the connections you make in a SwitchScan.List. For example, if CH1 is already connected to CH2 and the SwitchScan.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 SwitchScanMode.None, the switch takes no action on existing paths. If the value is SwitchScanMode.BreakBeforeMake, the switch breaks conflicting paths before making new ones. If the value is SwitchScanMode.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.
Namespace:
NationalInstruments.ModularInstruments.NISwitch
Assembly:
NationalInstruments.ModularInstruments.NISwitch.Fx40 (in NationalInstruments.ModularInstruments.NISwitch.Fx40.dll) Version: 19.0.0.49152 (19.0.0.49152)Visual Basic (Declaration) |
---|
Public Property Mode As SwitchScanMode |
C# |
---|
public SwitchScanMode Mode { get; set; } |
Property Value
Type: NationalInstruments.ModularInstruments.NISwitch..::.SwitchScanMode The values for the property are defined in NISwitch.SwitchScanMode.
Exceptions
Exception | Condition |
---|---|
ObjectDisposedException | The Mode was accessed after the associated NISwitch.NISwitch object was disposed. |