viUnlock
Purpose
Relinquishes a lock for the specified resource.
C Syntax
ViStatus viUnlock(ViSession vi)
Visual Basic Syntax
viUnlock&(ByVal vi&)
Resource Classes
All I/O session types
Parameters
Name | Direction | Description |
---|---|---|
vi |
IN |
Unique logical identifier to a session. |
Return Values
Completion Codes | Description |
---|---|
VI_SUCCESS |
Lock successfully relinquished. |
VI_SUCCESS_NESTED_EXCLUSIVE |
Call succeeded, but this session still has nested exclusive locks. |
VI_SUCCESS_NESTED_SHARED |
Call succeeded, but this session still has nested shared locks. |
Error Codes | Description |
---|---|
VI_ERROR_INV_OBJECT |
The given session reference is invalid. |
VI_ERROR_SESN_NLOCKED |
The current session did not have any lock on the resource. |
Description
This operation is used to relinquish the lock previously obtained using the viLock() operation.
Related Topics