Locks the resource for this session with a shared lock, with the specified timeout period.

Syntax

Namespace: NationalInstruments.Visa

public string LockResource(int timeoutMilliseconds, string sharedKey)

Parameters

NameTypeDescription
timeoutMillisecondsint

The timeout period for obtaining the lock. If the timeout is Ivi.Visa.VisaConstants.ImmediateTimeout (0), the operation will not block. If the timeout is Ivi.Visa.VisaConstants.InfiniteTimeout (–1), the operation will not timeout.

sharedKeystring

The name of the requested key.

Returns

Then name of the key that was granted.