Technical data
74 Agilent Signal Generators Programming Guide
Programming Examples
Using the Programming Interface Examples
Update in Remote function. (For more information, refer to or “Configuring the Display for
Remote Command Setups (Agilent MXG)” on page 19.) or “Configuring the Display for
Remote Command Setups (ESG/PSG)” on page 20.
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.
Running C++ Programs
When using Microsoft Visual C++ 6.0 to run the example programs, include the following files in your
project.
When using the VISA library:
• add the visa32.lib file to the Resource Files
• add the visa.h file to the Header Files
When using the NI- 488.2 library:
• add the GPIB- 32.OBJ file to the Resource Files
• add the windows.h file to the Header Files
• add the Deci- 32.h file to the Header Files
For information on the NI- 488.2 library and file requirements refer to the National Instrument
website. For information on the VISA library see the Agilent website or National Instrument’s
website.
NOTE To communicate with the signal generator over the LAN interface you must enable the
VXI- 11 SCPI service. For more information, refer to “Configuring the DHCP LAN (Agilent
MXG)” on page 35 and “Configuring the VXI–11 for LAN (ESG/PSG)” on page 33.