Closes the specified session, or the connection to a device
status = viClose(vi)
contains the return code of the operation.
unique logical identifier to a session, event, or find list.
The viClose() operation closes a session or a connection to a device (or an 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.