Keysight VISA.NET Help
UnlockResource Method (VisaSession)



Unlocks the resource.
Syntax
'Declaration
 
Public Sub UnlockResource() 
'Usage
 
Dim instance As VisaSession
 
instance.UnlockResource()
public void UnlockResource()
public:
void UnlockResource(); 
Remarks

For each session, LockResource and UnlockResource share an internal lock count, which is initialized to 0. Each successful call to LockResource on the same session (and for the same lock type) increases the lock count. When a session locks the resource a multiple number of times, it is necessary to invoke the UnlockResource method an equal number of times in order to unlock the resource. That is, the lock count increments for each call to LockResource, and decrements for each call to UnlockResource. A resource is actually unlocked only when the lock count is 0.

It is possible to obtain both shared and exclusive locks on the same resource, in that order. In such cases, this method decrements the exclusive lock count first, and then the shared lock count.

Requirements

Current with Keysight IO Libraries Suite 18

See Also

 

 


© Keysight Technologies 2015-2025