RfsaDriverUtility.Lock(PrecisionTimeSpan) Method
- Updated2025-07-17
- 1 minute(s) read
Rfsa
Attempts to acquire a synchronization lock on this instance of the driver.
Namespace: NationalInstruments.ModularInstruments.NIRfsa
Assembly: NationalInstruments.ModularInstruments.NIRfsa.Fx45 (in NationalInstruments.ModularInstruments.NIRfsa.Fx45.dll) Version: 2025
Syntax
public RfsaDriverLock Lock( PrecisionTimeSpan maximumTime )
Public Function Lock ( maximumTime As PrecisionTimeSpan ) As RfsaDriverLock
Parameters
- maximumTime PrecisionTimeSpan
- Specifies the maximum amount of time to wait to acquire the lock.
Return Value
RfsaDriverLockReturns an object of type RfsaDriverLock as a reference to the acquired lock.
Exceptions
Exception | Condition |
---|---|
ObjectDisposedException | The Lock method was accessed after the associated NIRfsa object was disposed. |