
65
SCPI Command Reference
10.
SCPI Command Reference
This chapter contains the following information:
Command parser - rules of the command parser.
Command syntax - command line writing rules
Query syntax - writing rules of query command
Query response - format of the query response
Command reference
This section provides all SCPI commands used by the AT381x. With these SCPI commands,
you can complete control over all functions of the instrument.
10.1
Handshake Protocol
Since the AT381x uses the minimum subset of the RS-232 standard and does not use
hardware handshaking signals, the AT381x can use software handshaking in order to reduce
possible data loss or data errors in communication. High-level language software engineers
should strictly follow the handshake below agreement to make preparation of computer
communication software:
Instrument terminator only accepts ASCII format, command response also returns ASCII
code.
Command string that sent by host must be ended with LF/CR/LF+CR mark, instrument
terminator will begin performing command string only after it receives end mark.
Instrument can set command handshake: instrument will return an identification code after
it receives command and finishes processing.
If the host cannot accept the data returned by the instrument, you can try to solve it by using the
following methods:
1. The software handshake is turned off, please refer to the <SYSTEM CONFIG> page of the
instrument to turn it on.
2. The serial port connection is faulty, please check the cable connection.
3. The communication format of the high-level language program on the computer side is
incorrect. Try on checking the serial port number, whether the communication format is correct,
and the baud rate is the same as the instrument setting.
4. If the instrument is parsing the last command and the host cannot receive the response from
the instrument, please try again later.
10.2
Terminator
The AT381x supports 4 terminators:
LF (Hexadecimal
:
0x0A)
CR(Hexadecimal
:
0x0D)
CR+LF (Hexadecimal
:
0x0D 0x0A)