NI-SWITCH 19.0 .NET Framework 4.0 API Reference

Table of Contents

QueryInstrumentStatus Property

  • Updated2023-02-21
  • 2 minute(s) read
QueryInstrumentStatus Property
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

ExceptionCondition
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.

See Also

Log in to get a better experience