RfsgDriverUtility.Lock Method
- Updated2024-05-08
- 1 minute(s) read
RfsgDriverUtilityLock Method
Obtains a multithread lock on the instrument session.
Namespace: NationalInstruments.ModularInstruments.NIRfsg
Assembly: NationalInstruments.ModularInstruments.NIRfsg.Fx40 (in NationalInstruments.ModularInstruments.NIRfsg.Fx40.dll) Version: 2022
Syntax
public RfsgDriverLock Lock()
Public Function Lock As RfsgDriverLock
Return Value
Type: RfsgDriverLockReturns an object of type RfsgDriverLock.
Exceptions
Exception | Condition |
---|---|
ObjectDisposedException | The Lock method was accessed after the associated NIRfsg object was disposed. |
Remarks
Before obtaining multithread lock, this method waits until all other execution threads have released their locks on the instrument session.