NIRfsa Namespace

Table of Contents

RfsaDriverUtility.Lock(PrecisionTimeSpan) Method

  • Updated2025-07-17
  • 1 minute(s) read
RfsaDriverUtility.Lock(PrecisionTimeSpan) Method

RfsaDriverUtilityLock(PrecisionTimeSpan) Method

Attempts to acquire a synchronization lock on this instance of the driver.

Namespace: NationalInstruments.ModularInstruments.NIRfsa
Assembly: NationalInstruments.ModularInstruments.NIRfsa.Fx45 (in NationalInstruments.ModularInstruments.NIRfsa.Fx45.dll) Version: 2025

Syntax

public RfsaDriverLock Lock(
	PrecisionTimeSpan maximumTime
)
Public Function Lock ( 
	maximumTime As PrecisionTimeSpan
) As RfsaDriverLock

Parameters

maximumTime  PrecisionTimeSpan
Specifies the maximum amount of time to wait to acquire the lock.

Return Value

RfsaDriverLock
Returns an object of type RfsaDriverLock as a reference to the acquired lock.

Exceptions

ExceptionCondition
ObjectDisposedException The Lock method was accessed after the associated NIRfsa object was disposed.

See Also

Log in to get a better experience