DCPowerDriverUtility.Lock Method (PrecisionTimeSpan)
- Updated2024-01-04
- 1 minute(s) read

DCPowerDriverUtilityLock Method (PrecisionTimeSpan)
Attempts to acquire a synchronization lock on this instance of the driver and specifies the maximum amount of time to wait to acquire the lock.
Namespace: NationalInstruments.ModularInstruments.NIDCPower
Assembly: NationalInstruments.ModularInstruments.NIDCPower.Fx40 (in NationalInstruments.ModularInstruments.NIDCPower.Fx40.dll) Version: 2023
Syntax
public DCPowerDriverLock Lock( PrecisionTimeSpan maximumTime )
Public Function Lock ( maximumTime As PrecisionTimeSpan ) As DCPowerDriverLock
Parameters
- maximumTime
- Type: Ivi.DriverPrecisionTimeSpan
Specifies the maximum amount of time to wait to acquire the lock.
Return Value
Type: DCPowerDriverLockReturns an object of type IIviDriverLock as a reference to the acquired lock.
Exceptions
Exception | Condition |
---|---|
ObjectDisposedException | The Lock(PrecisionTimeSpan) method was called after the associated NIDCPower object was disposed. |