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

TypeDescription
System.ObjectDisposedException

The Lock method was accessed after the associated NIRfsg object was disposed.