Lock()
- Updated2025-10-14
- 1 minute(s) read
Obtains a multithread lock on the instrument session.
Syntax
Namespace: NationalInstruments.ModularInstruments.NIRfsg
public RfsgDriverLock Lock()
Remarks
Before obtaining multithread lock, this method waits until all other execution threads have released their locks on the instrument session.
Returns
Returns an object of type RfsgDriverLock.
Exceptions
| Type | Description |
|---|---|
| System.ObjectDisposedException | The Lock method was accessed after the associated NIRfsg object was disposed. |