NI-Digital Pattern Driver .NET Class Library

Table of Contents

DigitalDriverUtility.Lock Method

  • Updated2023-11-24
  • 1 minute(s) read
DigitalDriverUtility.Lock Method

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: IIviDriverLock
A reference to the acquired lock.

Implements

IIviDriverUtilityLock

Remarks

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.

See Also

Log in to get a better experience