DigitalDriverUtility.Lock Method
- Updated2023-11-24
- 1 minute(s) read
DigitalDriverUtilityLock Method
Acquires a synchronization lock on this instance of the driver.
Namespace: NationalInstruments.ModularInstruments.NIDigital
Assembly: NationalInstruments.ModularInstruments.NIDigital.Fx40 (in NationalInstruments.ModularInstruments.NIDigital.Fx40.dll) Version: 2021
Syntax
public IIviDriverLock Lock()
Public Function Lock As IIviDriverLock
Return Value
Type: IIviDriverLockA reference to the acquired lock.
Implements
IIviDriverUtilityLockRemarks
The calling thread is blocked
indefinitely until the lock is acquired. Use this method to gain exclusive access to the driver
instance across a series of methods calls. You must call Unlock on the returned lock to
relinquish the lock and allow other threads to access this instance of the driver.