Keysight VISA.NET Help
WaitForLockRelease Property



Indicates whether methods and properties from this session instance will wait for a timeout period for a resource lock to be released (true) or not (false).
Syntax
'Declaration
 
Public Property WaitForLockRelease As Boolean
'Usage
 
Dim instance As VisaSession
Dim value As Boolean
 
instance.WaitForLockRelease = value
 
value = instance.WaitForLockRelease
public bool WaitForLockRelease {get; set;}
public:
property bool WaitForLockRelease {
   bool get();
   void set (    bool value);
}
Remarks

This property is specific to Keysight VISA.NET.

This property only applies to this session (VISA local scope).

If WaitForLockRelease is true, and if the resource has been exclusively locked, methods and properties from this session instance will wait, for a period equal to the session timeout, for the lock to be released. If the lock is released within the timeout period, the method or property will execute normally. If the lock is not released within the timeout period, the method or property will throw an exception that indicates a timeout error rather than a locking error.

The default is false, in which case methods and properties from this session instance will not wait for the timeout period if the resource is locked. If the resource is locked, they will throw an exception that indicates a locking error.

Requirements

Current with Keysight IO Libraries Suite 18

See Also

 

 


© Keysight Technologies 2015-2025