
126
Chapter 3
Programming Examples
Types of Examples
Types of Examples
This section includes examples of how to program the instrument using
the instrument SCPI programming commands. The most of the
examples are written for a PC, using GPIB. They are written in the C
programming language and use the HP/Agilent VISA transition library.
The VISA transition library must be installed and the GPIB card
configured.
These examples are available on the Agilent Technologies E4406A
documentation CD-ROM. They are also available at the URL
http://www.agilent.com/find/vsa
The section
“C Programming Examples using VTL” on page 84
includes some basic information about using the C programming
language. That information can be used with the examples in this
chapter to create your own measurement routines.
Examples are also available showing you how to program the
instrument using the VXIplug&play instrument driver that is provided.
The examples are included in the on-line documentation in the driver
itself. The driver allows you to use several different programming
languages including: VEE, LabView, C, C++, and BASIC. The software
driver can be found at the URL
http://www.agilent.com/find/vsa
.
The programming examples include:
•
•
“Saving Binary Trace Data in an ASCII File” on page 130
•
“Saving ASCII Trace Data in an ASCII File” on page 133
•
“Saving and Recalling Instrument State Data” on page 136
•
“Performing Alignments and Getting Pass/Fail Results” on page 139
•
“Using C Programming Over Socket LAN” on page 141
•
“Using C Programming Over Socket LAN (Windows NT)” on page
155
•
Summary of Contents for E4406A VSA Series
Page 4: ...4 ...
Page 59: ...59 2 Programming Fundamentals ...
Page 124: ...124 Chapter2 Programming Fundamentals Using the LAN to Control the Analyzer ...
Page 125: ...125 3 Programming Examples ...
Page 164: ...164 Chapter3 Programming Examples Using Java Programming Over Socket LAN ...
Page 165: ...165 4 Programming Command Cross References ...
Page 379: ...379 6 Error Messages ...
Page 412: ...412 Chapter6 Error Messages Error Message Descriptions ...