Technical data

Programming Examples 3
Agilent N8211A/N8212A Performance Upconverter Synthetic Instrument Module, 250 kHz to 20 / 40 GHz 53
C/C++ Examples
“VXI-11 Programming Using SICL and C++" on page 55
“VXI-11 Programming Using VISA and C++" on page 58
“Sockets LAN Programming Using Java" on page 91
Running C# Examples
To run the example program State_Files.cs in “Save and Recall Programming Example
Using VISA and C#" on page 133, you must have the .NET framework installed on your
computer. You must also have the Agilent IO Libraries installed on your computer. The .NET
framework can be downloaded from the Microsoft website. For more information on
running C# programs using .NET framework, see Chapter 5.
Running Basic Examples
The BASIC programming interface examples provided in this chapter use either HP Basic or
Visual Basic 6.0 languages.
Visual Basic 6.0 Programming Examples
To run the example programs written in Visual Basic 6.0 you must include references to the
IO Libraries. For more information on VISA and IO libraries, refer to the Agilent VISA User’s
Manual, available on Agilent’s website: http://www.agilent.com. In the Visual Basic IDE
(Integrated Development Environment) go to Project–References and place a check mark
on the following references:
Agilent VISA COM Resource Manager 1.0
VISA COM 1.0 Type Library
If you want to use VISA functions such as viWrite, then you must add the visa32.bas
module to your Visual Basic project.
The N8211A/N8212A’s VXI-11 SCPI service must be on before you can run the Download
Visual Basic 6.0 programming example.
You can start a new Standard EXE project and add the required references. Once the
required references are included, you can copy the example programs into your project and
add a command button to Form1 that will call the program.
The example Visual Basic 6.0 programs are available on the N8211A/N8212A
Documentation CD-ROM, enabling you to cut and paste the examples into your project.
Running Java Examples
The Java program “Sockets LAN Programming Using Java" on page 91, connects to the
N8211A/N8212A via sockets LAN. This program requires Java version 1.1 or later be
installed on your PC.