Closes the specified session, event, or find list.
ViStatus viClose(ViObject vi)
viClose&(ByVal vi&)
All I/O session types, all event object types, VISA Resource Manager
Name | Direction | Description |
---|---|---|
vi |
IN |
Unique logical identifier to a session, event, or find list. |
Completion Codes | Description |
---|---|
VI_SUCCESS |
Session closed successfully. |
VI_WARN_NULL_OBJECT |
The specified object reference is uninitialized. |
Error Codes | Description |
---|---|
VI_ERROR_INV_OBJECT |
The given object reference is invalid. |
VI_ERROR_CLOSING_FAILED |
Unable to deallocate the previously allocated data structures corresponding to this session or object reference. |
The viClose() operation closes a session, event, or a find list. In this process all the data structures that had been allocated for the specified vi are freed. Calling viClose() on a VISA Resource Manager session will also close all I/O sessions associated with that resource manager session.
Related Topics