Attempts to acquire a synchronization lock on this instance of the driver.

Syntax

Namespace: NationalInstruments.ModularInstruments.NIRfsa

public RfsaDriverLock Lock(Ivi.Driver.PrecisionTimeSpan maximumTime)

Parameters

NameTypeDescription
maximumTimeIvi.Driver.PrecisionTimeSpan

Specifies the maximum amount of time to wait to acquire the lock.

Returns

Returns an object of type RfsaDriverLock as a reference to the acquired lock.

Exceptions

TypeDescription
System.ObjectDisposedException

The NationalInstruments.ModularInstruments.NIRfsa.RfsaDriverUtility.Lock method was accessed after the associated NIRfsa object was disposed.