Keysight CXG, EXG, and MXG X-Series Signal Generators Programming Guide 115
Programming Examples
LAN Programming Interface Examples
LAN Programming Interface Examples
—
“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
—
“Sockets LAN Programming Using Java” on page 150
—
“Sockets LAN Programming Using Perl” on page 153
—
“TCP-IP (LAN) Programming Using Matlab” on page 154
For additional LAN programming examples that work with user-data files, refer
to:
—
“Save and Recall Instrument State Files” on page 365
VXI-11 Programming
The signal generator supports the VXI-11 standard for instrument
communication over the LAN interface. Keysight IO Libraries support the
VXI-11 standard and must be installed on your computer before using the
for information on
configuring and using the VXI-11 protocol.
The VXI-11 examples use TCPIP0 as the board address.
Using VXI-11 with GPIB Programs
The GPIB programming examples that use the VISA library, and are listed in
“GPIB Programming Interface Examples” on page 68
, can be easily changed
to use the LAN VXI-11 protocol by changing the address string. For example,
change the "GPIB::19::INSTR" address string to "TCPIP::hostname::INSTR"
where hostname is the IP address or hostname of the signal generator. The
VXI-11 protocol has the same capabilities as GPIB. See the section
for more information.
The LAN programming examples in this section demonstrate the use of
VXI-11 and Sockets LAN to control the signal generator.
To use these programming examples you must change references to the IP
address and hostname to match the IP address and hostname of your
signal generator.
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 ...