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



The timeout period for obtaining the lock. If the timeout is TimeSpan.Zero, the operation will not block. If the timeout is TimeSpan.MaxValue, 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 timeout As TimeSpan, _
   ByVal sharedKey As String _
) As String
'Usage
 
Dim instance As IVisaSession
Dim timeout As TimeSpan
Dim sharedKey As String
Dim value As String
 
value = instance.LockResource(timeout, sharedKey)

Parameters

timeout
The timeout period for obtaining the lock. If the timeout is TimeSpan.Zero, the operation will not block. If the timeout is TimeSpan.MaxValue, 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