Keysight VISA.NET Help
LockResource(Int32,String) Method



The timeout period for obtaining the lock. If the timeout is VisaConstants.ImmediateTimeout (0), the operation will not block. If the timeout is VisaConstants.InfiniteTimeout (-1), the operation will not timeout.
The name of the requested key.
Locks the resource for this session with a shared lock, with the specified timeput period.
Syntax
'Declaration
 
Overloads Function LockResource( _
   ByVal timeoutMilliseconds As Integer, _
   ByVal sharedKey As String _
) As String
'Usage
 
Dim instance As IVisaSession
Dim timeoutMilliseconds As Integer
Dim sharedKey As String
Dim value As String
 
value = instance.LockResource(timeoutMilliseconds, sharedKey)

Parameters

timeoutMilliseconds
The timeout period for obtaining the lock. If the timeout is VisaConstants.ImmediateTimeout (0), the operation will not block. If the timeout is VisaConstants.InfiniteTimeout (-1), the operation will not timeout.
sharedKey
The name of the requested key.

Return Value

Then name of the key that was granted.
Requirements

Current with Keysight IO Libraries Suite 18

See Also

 

 


© Keysight Technologies 2015-2025