QueryInstrumentStatus Property
- Updated2023-02-21
- 2 minute(s) read
Gets or sets whether NI-SWITCH queries the NI-SWITCH device status after each operation.
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 QueryInstrumentStatus As Boolean |
C# |
---|
public bool QueryInstrumentStatus { get; set; } |
Property Value
Type: System..::.Boolean trueTruetruetrue (True in Visual Basic) if querying is enabled; otherwise, falseFalsefalsefalse (False in Visual Basic).
Exceptions
Exception | Condition |
---|---|
ObjectDisposedException | The QueryInstrumentStatus was accessed after the associated NISwitch.NISwitch object was disposed. |
Remarks
NI-SWITCH can choose to ignore status checking for particular properties, regardless of the setting of this property.
Querying the device status is useful for debugging. After you validate your program, you can set this property to falseFalsefalsefalse (False in Visual Basic) to disable status checking and maximize performance.