Technical data
140 Chapter 9
Programming Examples
Programming in C Using the VISA
Programming Examples
Programming in C Using the VISA
The C programming examples that are provided are written using the C
programming language and the Agilent (VISA library). This section
includes some basic information about programming in the C language.
Note that some of this information may not be relevant to your
particular application. (For example, if you are not using VXI
instruments, the VXI references will not be relevant).
Refer to your C programming language documentation for more details.
The following topics are included:
“Typical Example Program Contents” on page 141
“Linking to VISA Libraries” on page 142
“Compiling and Linking a VISA Program” on page 142
“Example Program” on page 144
“Including the VISA Declarations File” on page 144
“Opening a Session” on page 145
“Device Sessions” on page 145
“Addressing a Session” on page 147
“Closing a Session” on page 148