Agilent Technologies E4406A VSA manual Using Telnet to Send Commands, Analyzer” on page, On unix

Models: E4406A VSA

1 406
Download 406 pages 63.49 Kb
Page 92
Image 92
Using Telnet to Send Commands

 

Programming Fundamentals

 

Using the LAN to Control the Analyzer

 

Using Telnet to Send Commands

 

Using telnet to send commands to your analyzer works in a similar way

 

to communicating over GPIB. You establish a connection with the

 

analyzer, and then send or receive information using SCPI commands.

 

If you need to control the GPIB using “device clear” or SRQ’s, you can

NOTE

 

use SICL LAN. SICL LAN provides control of your analyzer via IEEE

 

488.2 GPIB over the LAN. See “Using SICL LAN to Control the

 

Analyzer” on page 95.

 

On unix:

 

The syntax of the telnet command is:

 

telnet <vsa hostname> 5023

 

or

 

telnet <IP address> 5023

 

The initial telnet connection message will be displayed and then a

 

SCPI> prompt. At the SCPI prompt, simply enter the desired SCPI

 

commands.

 

On a PC:

 

You would type at the dos prompt

 

telnet

 

The telnet gui has the host/port setting menu.

 

Unix Telnet Example:

 

To connect to the instrument with host name my4406 and port number

 

5023, enter the following command:

 

telnet my4406 5023

 

When you connect to the instrument, it will display a welcome message

 

and a command prompt.

 

The instrument is now ready to accept your SCPI commands. As you

 

type SCPI commands, query results appear on the next line. When you

 

are done, break the telnet connection using the escape character (in this

 

case Ctrl ]), and type quit.

 

The analyzer responds with the a welcome message and the SCPI

 

prompt. You can immediately enter programming (SCPI) commands.

 

Typical commands might be:

 

CONF:SPECTRUM

 

CALC:SPECTRUM:MARK:TRACE SPECTRUM

 

CALC:SPECTRUM:MARK:MAX

 

CALC:SPECTRUM:MARK:MAX?

92

Chapter 2

Page 92
Image 92
Agilent Technologies E4406A VSA Using Telnet to Send Commands, Analyzer” on page, On unix, On a PC, Unix Telnet Example