Agilent Technologies E8663B Portable Generator User Manual


 
58 Agilent N518xA, E8663B, E44x8C, and E82x7D Signal Generators Programming Guide
Programming Examples
Using the Programming Interface Examples
Using the Programming Interface 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 IO 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:
These example programs are also available on the signal generator Documentation CD-ROM, enabling
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 Agilent MXG Local/Esc/Cancel or the ESG, PSG, and E8663B’s Local key, are disabled.
Press the Agilent MXG Local/Esc/Cancel or the ESG, PSG, and E8663B’s Local key to revert to
manual operation.
To have the signal generator’s front panel update with changes caused by remote operations, enable
the signal generator’s Update in Remote function.
NOTE The Update in Remote function will slow test execution. For faster test execution, disable the
Update in Remote function. (For more information, refer to or “Configuring the Display for
Remote Command Setups (Agilent MXG)” on page 17.) or “Configuring the Display for
Remote Command Setups (ESG/PSG/E8663B)” on page 17.
Programming Examples Development Environment
The C/C++ examples were written using an IBM-compatible personal computer (PC), configured as
follows:
•Pentium
®
processor (Pentium is a registered trademark of Intel Corporation.)
Windows NT 4.0 operating system or later
C/C++ programming language with the Microsoft Visual C++ 6.0 IDE
National Instruments PCI-GPIB interface card or Agilent GPIB interface card
National Instruments VISA Library or Agilent VISA library
COM1 or COM2 serial port available
•LAN interface card
The HP Basic examples were run on a UNIX 700 series workstation.
HP Basic C#
C/C++ Microsoft Visual Basic 6.0
Java MATLAB
Perl