Specifications
Chapter 16 167
ESA/PSA Programming Examples
Programming in C Using the VTL
ESA/PSA Programming Examples
Programming in C Using the VTL
The C programming examples that are provided are written using the C
programming language and the Agilent VTL (VISA transition 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.
(This information is taken from the manual “VISA Transition Library”,
part number E2090-90026.) The following topics are included:
“Typical Example Program Contents” on page 168
“Linking to VTL Libraries” on page 169
“Compiling and Linking a VTL Program” on page 169
“Example Program” on page 171
“Including the VISA Declarations File” on page 171
“Opening a Session” on page 172
“Device Sessions” on page 172
“Addressing a Session” on page 174
“Closing a Session” on page 175