Programming instructions

Programming Examples
Using the Programming Examples
Chapter 232
Using the Programming Examples
The programming examples for remote control of the signal generator use the GPIB, LAN,
and RS-232 interfaces and demonstrate instrument control using different I/O libraries and
programming languages. Many of the example programs in this chapter are interactive; the
user will be prompted to perform certain actions or verify signal generator operation or
functionality. Example programs are written in the following languages:
Agilent BASIC
•C/C++
•Java
•PERL
See Chapter 1 of this programming guide for information on interfaces, I/O libraries, and
programming languages.
The example programs are also available on the ESG Documentation CD-ROM, allowing you
to cut and paste the examples into a text editor.
NOTE The example programs set the signal generator into remote mode; front panel
keys, except the
Local key, are disabled. Press the Local key to revert to manual
operation.
NOTE To update the signal generator’s front panel display so that it reflects remote
command setups, enable the remote display: press
Utility > Display > Update in
Remote Off On
softkey until On is highlighted or send the SCPI command
:DISPlay:REMote ON.
For faster test execution, disable front panel updates.
Programming Examples Development Environment
The C/C++ examples in this guide were written using an IBM-compatible personal computer
(PC) with the following configuration:
•Pentium
®
processor
Windows NT 4.0 operating system
Pentium is a U.S. registered trademark of Intel Corporation