Agilent Technologies 34970A Switch User Manual


 
Example Programs for C and C++
The following C programming examples show you how to send and
receive formatted I/O. For more information on non-formatted I/O, refer
to the
Agilent VISA User’s Guide. The examples in this section show you
how to use the
SCPI commands for the instrument with the VISA
functionality and does not include error trapping. Error trapping,
however, is good programming practice and is recommended for your
application. For more information on error trapping, refer to the
Agilent VISA User’s Guide.
The example programs are written in Microsoft
®
Visual C++
Version 1.52 using project type “QuickWin application”, and using the
large memory model. Be sure to have access in the project to
visa.lib or
visa32.lib usually found in the c:\vxipnp or c:\visa directory.
Chapter 7 Application Programs
Example Programs for C and C++
328