Lock()
- Updated2026-01-20
- 1 minute(s) read
Acquires a synchronization lock on this instance of the NI-SWITCH driver.
Syntax
Namespace: NationalInstruments.ModularInstruments.NISwitch
public SwitchDriverLock Lock()
Returns
Returns an object of type Ivi.Driver.IIviDriverLock as a reference to the acquired lock.
Exceptions
| Type | Description |
|---|---|
| System.ObjectDisposedException | The Lock method was accessed after the associated NISwitch object was disposed. |