Step 3—Closing the Device
The last step in communication is to close the VISA sessions with the PXI/PCI device and the VISA driver. The following figure shows a VI for closing the VISA session to the PXI-6070E.
Example eseriesClose.vi
In LabVIEW, to close a session to a VISA resource you have opened, the only function you need to call is VISA Close. In the above diagram, the VISA Resource Name variable would be passed in from the previous VIs used to communicate with the device. In the LabWindows/CVI example, the viClose() function closes the VISA session to the PXI device. This function must actually be called twice, once to close the session to the PXI device and once to close the session to the VISA driver.