Technical data
52 Agilent N8211A/N8212A Performance Upconverter Synthetic Instrument Module, 250 kHz to 20 / 40 GHz
3 Programming Examples
Using the Programming Interface Examples
The programming examples for remote control of the N8211A/N8212A 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 N8211A/N8212A operation or
functionality. Example programs are written in the following languages:
These example programs are also available on the N8211A/N8212A Documentation
CD-ROM, enabling you to cut and paste the examples into a text editor.
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
• MS Visual Studio
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.
HP Basic C#
C/C++ Microsoft Visual Basic 6.0
Java MATLAB
Perl