Lan programming interface examples, Vxi-11 programming, Vxi- 11 programming – Agilent Technologies N5183A MXG User Manual

Page 111

Advertising
background image

Agilent N518xA, E8663B, E44x8C, and E82x7D Signal Generators Programming Guide

101

Programming Examples

LAN Programming Interface Examples

115 OUTPUT 717;”RC1”

LAN Programming Interface Examples

NOTE

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.

“VXI- 11 Programming Using SICL and C++” on page 102

“VXI- 11 Programming Using VISA and C++” on page 103

“Sockets LAN Programming and C” on page 105

“Sockets LAN Programming Using Java” on page 128

“Sockets LAN Programming Using PERL” on page 130

For additional LAN programming examples that work with user- data files, refer to:

“Save and Recall Instrument State Files” on page 325

VXI-11 Programming

The signal generator supports the VXI- 11 standard for instrument communication over the LAN
interface. Agilent IO Libraries support the VXI- 11 standard and must be installed on your computer
before using the VXI- 11 protocol. Refer to

“Using VXI- 11” on page 37

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 62

, 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

“Setting Up the LAN Interface” on

page 29

for more information.

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

.

Advertising
This manual is related to the following products: