Lock(Ivi.Driver.PrecisionTimeSpan)
- Updated2025-10-06
- 1 minute(s) read
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.
Syntax
Namespace: NationalInstruments.ModularInstruments.NIDCPower
public DCPowerDriverLock Lock(Ivi.Driver.PrecisionTimeSpan maximumTime)
Parameters
| Name | Type | Description |
|---|---|---|
| maximumTime | Ivi.Driver.PrecisionTimeSpan | Specifies the maximum amount of time to wait to acquire the lock. |
Returns
Returns an object of type Ivi.Driver.IIviDriverLock as a reference to the acquired lock.
Exceptions
| Type | Description |
|---|---|
| System.ObjectDisposedException | The Lock(PrecisionTimeSpan) method was called after the associated NIDCPower object was disposed. |