Lock(Ivi.Driver.PrecisionTimeSpan)
- Updated2025-10-14
- 1 minute(s) read
Obtains a multithread lock on the instrument session and specifies the maximum amount of time to wait to acquire the lock.
Syntax
Namespace: NationalInstruments.ModularInstruments.NIRfsg
public RfsgDriverLock Lock(Ivi.Driver.PrecisionTimeSpan maxTime)
Remarks
This method waits until all other execution threads have released their locks on the instrument session before it obtains a multithread lock on the instrument session.
Parameters
| Name | Type | Description |
|---|---|---|
| maxTime | Ivi.Driver.PrecisionTimeSpan | Specifies the maximum amount of time to wait to acquire the lock. |
Returns
An RfsgDriverLock object, that has the Unlock method.