64 Keysight CXG, EXG, and MXG X-Series Signal Generators Programming Guide
Programming Examples
Using the Programming Interface Examples
C/C++ Examples
—
“Interface Check for GPIB Using VISA and C” on page 75
—
“Local Lockout Using NI-488.2 and C++” on page 78
—
“Queries Using NI-488.2 and Visual C++” on page 82
—
“Queries for GPIB Using VISA and C” on page 85
—
“Generating a CW Signal Using VISA and C” on page 88
—
“Generating an Externally Applied AC-Coupled FM Signal Using VISA and
—
“Generating an Internal FM Signal Using VISA and C” on page 93
—
“Generating a Step-Swept Signal Using VISA and C++” on page 96
—
“Reading the Data Questionable Status Register Using VISA and C” on
—
“Reading the Service Request Interrupt (SRQ) Using VISA and C” on
—
“VXI-11 Programming Using SICL and C++” on page 116
—
“VXI-11 Programming Using VISA and C++” on page 118
—
“Sockets LAN Programming and C” on page 120
Running C# Examples
To run the example program
State_Files.cs
on
, you must have the
.NET framework installed on your computer. You must also have the Keysight
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
.
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 Keysight VISA User’s Manual, available on Keysight’s website:
http://www.keysight.com
. In the Visual Basic IDE (Integrated Development
Environment) go to Project–References and place a check mark on the
following references:
— Keysight VISA COM Resource Manager 1.0
— VISA COM 1.0 Type Library
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 Service” on page 43
.
Summary of Contents for X-Series
Page 4: ...4 ...
Page 10: ...10 Contents ...