Technical data

Programming Fundamentals 28
Agilent N8201A Performance Downconverter Synthetic Instrument Module, 250 kHz to 26.5 GHz 599
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 (with telnet gui that has host/port setting menu):
You would type at the dos prompt
telnet
Unix Telnet Example:
To connect to the instrument with host name aaa and port number 5023, enter the
following command:
telnet aaa 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. At any time, you can send a <device
clear> by pressing cntrl-c on your keyboard. When you are done, break the telnet
connection using your escape character, and type quit.
When the instrument responds with the welcome message and the SCPI prompt, you can
immediately enter programming (SCPI) commands.
Typical commands might be:
CALC:MARK:MODE POS
CALC:MARK:MAX
CALC:MARK:X?
The small program above sets the instrument to measure a signal amplitude by placing a
marker on the maximum point of the trace, and then querying the instrument for the
amplitude of the marker.
NOTE
Early versions of Windows XP Telnet will initially only send a LF, not a CRLF. So the telnet
port 5023 does not work. You can manually correct this situation by sending the escape
sequence and then a CRLF. After connecting to the instrument, type in the telnet window:
Crtl-] (press the control and ] keys simultaneously)
set crlf <enter key>
<enter key>
You should now see the SCPI> prompt and you can continue working.
The Windows XP Service Pack 2 fixes this problem. You can get Service Pack 2 from the
Microsoft Windows update website.