User`s guide

18 Agilent VISA User’s Guide
2 Building a VISA Application in Windows
viPrintf
and
viScanf
These are the VISA formatted I/O functions that are
patterned after those used in the C programming language.
The
viPrintf call sends the IEEE 488.2 *RST command to
the instrument and puts it in a known state. The viPrintf
call is used again to query for the device identification
(
*IDN?). The viScanf call is then used to read the results.
viClose
This function must be used to close each session. When
you close a device session, all data structures that had
been allocated for the session will be deallocated. When
you close the default manager session, all sessions opened
using that default manager session will be closed.
Table 2 Summary of VISA Function Calls Used in the C/C++ Sample