NI-DCPower .NET fx40 API Reference

Table of Contents

DCPowerDriverUtility.Lock Method (PrecisionTimeSpan)

  • Updated2024-01-04
  • 1 minute(s) read
DCPowerDriverUtility.Lock Method (PrecisionTimeSpan)

DCPowerDriverUtilityLock Method (PrecisionTimeSpan)

Attempts to acquire a synchronization lock on this instance of the driver and specifies the maximum amount of time to wait to acquire the lock.

Namespace:  NationalInstruments.ModularInstruments.NIDCPower
Assembly:  NationalInstruments.ModularInstruments.NIDCPower.Fx40 (in NationalInstruments.ModularInstruments.NIDCPower.Fx40.dll) Version: 2023

Syntax

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

Parameters

maximumTime
Type: Ivi.DriverPrecisionTimeSpan
Specifies the maximum amount of time to wait to acquire the lock.

Return Value

Type: DCPowerDriverLock
Returns an object of type IIviDriverLock as a reference to the acquired lock.

Exceptions

ExceptionCondition
ObjectDisposedException The Lock(PrecisionTimeSpan) method was called after the associated NIDCPower object was disposed.

See Also

Log in to get a better experience