Agilent Technologies E4406A VSA Satellite Radio User Manual


 
92 Chapter 2
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.
NOTE If you need to control the GPIB using device clear or SRQs, you can
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?