Technical data
598 Agilent N8201A Performance Downconverter Synthetic Instrument Module, 250 kHz to 26.5 GHz
28 Programming Fundamentals
Using Telnet to Send Commands
Using telnet to send commands to your instrument works in a similar way to
communicating over GPIB. You establish a connection with the instrument, and then send
or receive information using SCPI commands.
If you need to control the bus using “device clear” or SRQ’s, you can use SICL LAN. SICL
LAN provides control of your instrument via IEEE 488.2 GPIB over the LAN. See “Using SICL
LAN to Control the Instrument" on page 604 in this chapter.
STATus bits that are already set when the socket connection is made cannot be read. Only
status bit changes that occur after the socket connection is made will returned when the
status register is queried.
On unix or PC:
The syntax of the telnet command is:
bye Closes the connection to the host and exits ftp.
cd remote_directory Sets the working directory on the host to remote_directory.
delete remote_file Deletes remote_file or empty remote_directory.
dir [remote_directory] Lists the contents of the specified remote_directory. If remote_directory
is unspecified, the contents of the current remote directory are listed.
get remote_file
[local_file]
Copies remote_file to local_file. If local_file is unspecified, ftp uses the
remote_file name as the local_file name.
help Provides a list of ftp commands.
help command Provides a brief description of command.
image Sets the file transfer type to binary.
lcd [local_directory] Sets the local working directory to local_directory.
ls [remote_directory] Lists the contents of the specified remote_directory. If the
remote_directory is unspecified, the contents of the current remote
directory are listed.
mget remote_file
[local_file]
Copy remote_file to the local system. If local_file is unspecified, ftp uses
the remote_file name as the local_file name.
mput local_file
[remote_file]
Copies local_file to remote file. If remote_file is unspecified, ftp uses the
local_file name as the remote_file name.
put local_file
[remote_file]
Copies local_file to remote file. If remote_file is unspecified, ftp uses the
local_file name as the remote_file name.
quit Closes the connection to the host and exits ftp.
Table 14 ftp Commands
Command Description