Defines properties that affect the operation of the instrument driver.

Derives from

  • SwitchSubObject
  • IIviDriverOperation
  • IDisposable
  • ISupportSynchronizationContext

Syntax

Namespace: NationalInstruments.ModularInstruments.NISwitch

public class SwitchDriverOperation : SwitchSubObject, IIviDriverOperation, IDisposable, ISupportSynchronizationContext

Remarks

For more information, refer to the NI Switches Help.

Thread Safety

All members of this type are safe for multithreaded operations.

Properties

NameDescription
Cache

Gets or sets whether to cache the value of properties.

DriverSetup

Gets the driver setup string used to set the initial values for properties that are specific to NI-SWITCH.

InterchangeCheck

Gets or sets whether to perform interchangeability checking and retrieve interchangeability warnings.

IOResourceDescriptor

Gets the resource name that the NI-SWITCH uses to identify the physical device.

LogicalName

Gets the logical name that you specified when opening the current IVI session.

QueryInstrumentStatus

Gets or sets whether NI-SWITCH queries the NI-SWITCH device status after each operation.

RangeCheck

Gets or sets whether to validate proper values and method parameters. If you enable this property, NI-SWITCH validates the parameter values that you pass to NI-SWITCH methods.

RecordCoercions

Gets or sets whether the IVI engine keeps a list of the value coercions it makes for integer and real type properties.

Simulate

Gets or sets a value which indicates whether to simulate NI-SWITCH I/O operations.

SynchronizeCallbacks

Gets or sets how events and callback delegates are invoked. For more information, read the Events, Callbacks, and Thread Safety in Measurement Studio .NET Class Libraries concept topic.

Methods

NameDescription
Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

InvalidateAllAttributes()

Invalidates all properties.

ResetInterchangeCheck()

Determines whether the test module has dependencies on the operation of previously executed test modules.

Events

NameDescription
Coercion

Occurs when the NI-SWITCH driver creates a coercion warning.

InterchangeCheckWarning

Occurs when the NI-SWITCH driver creates a interchange warning.

Warning

Occurs when the NI-SWITCH driver creates a driver warning.