| Keysight.Visa Namespace > VisaSession Class : WaitForLockRelease Property |
'DeclarationPublic Property WaitForLockRelease As Boolean
'UsageDim instance As VisaSession Dim value As Boolean instance.WaitForLockRelease = value value = instance.WaitForLockRelease
public bool WaitForLockRelease {get; set;}
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.
Current with Keysight IO Libraries Suite 18