NI-SWITCH 19.0 .NET Framework 4.0 API Reference

Table of Contents

Lock Method (PrecisionTimeSpan)

  • Updated2023-02-21
  • 2 minute(s) read
Lock Method (PrecisionTimeSpan)
Acquires a synchronization lock on this instance of the NI-SWITCH driver.

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 Function Lock ( _
	maximumTime As PrecisionTimeSpan _
) As SwitchDriverLock
C#
public SwitchDriverLock Lock(
	PrecisionTimeSpan maximumTime
)

Parameters

maximumTime
Type: Ivi.Driver..::.PrecisionTimeSpan
Specifies the maximum amount of time to wait to acquire the lock.

Return Value

Type: NationalInstruments.ModularInstruments.NISwitch..::.SwitchDriverLock
Returns an object of type IIviDriverLock as a reference to the acquired lock.

Exceptions

ExceptionCondition
ObjectDisposedException The Lock method was accessed after the associated NISwitch.NISwitch object was disposed.

See Also

Log in to get a better experience