Agilent Technologies E8663B Portable Generator User Manual


 
60 Agilent N518xA, E8663B, E44x8C, and E82x7D Signal Generators Programming Guide
Programming Examples
Using the Programming Interface Examples
Running C# Examples
To run the example program State_Files.cs on page 326, 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 6.
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 VXI-11 for LAN
(Agilent MXG)” on page 29 and “Configuring the VXI-11 for LAN (ESG/PSG/E8663B)” on
page 30.
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
NOTE If you want to use VISA functions such as viWrite, then you must add the visa32.bas module
to your Visual Basic project.
The signal generator’s VXI-11 SCPI service must be on before you can run the Download Visual Basic
6.0 programming example.
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 VXI-11 for LAN
(Agilent MXG)” on page 29 and “Configuring the VXI-11 for LAN (ESG/PSG/E8663B)” on
page 30.