2
Remote Control
2.1 Remote control basis
10
A software module in the instrument software
——
command interpreter
i s used for parsing each
received SCPI. The command interpreter breaks up the command into individual command element
using a series of rules for identifying the command tree path. After the current command is parsed, the
current command path remains unchanged. In this way, the subsequent commands can be parsed more
quickly and efficiently because the same command keyword may appear in different paths. After the
power-on*RST (reset) operation of the instrument, the current command path is reset as the root.
5) Command parameter and response
The SCPI defines different data formats in the use of the remote control and response messages to
conform to the principles of “
flexible listening
” and “
accurate speaking
”. For more information, please
refer to IEEE 488.2. “Flexible listening” means that the formats of commands and parameters are
flexible.
For example,the noise figure analyzer sets the frequency offset state command:FREQuency:
:OFFSet:STATe ON|OFF|1|0,
The following command formats are used to set the frequency offset function on:
:FREQuency:OFFSet:STATe ON
,
:FREQuency:OFFSet:STATe 1
,
:FREQ:OFFS:STAT ON
,
:FREQ:OFFS:STAT 1.
Each parameter type corresponding to one or more response data types. During query, a numeric data
will return a data type, and the response data is accurate. Strictly speaking, it is called as “
accurate
speaking
”.
For example, if you query the power state (:POWer:ALC:STATe?), when it is turned on, the response is
always 1, regardless of whether you previously sent :POWer:ALC:STATe 1 or :POWer:ALC:STATe ON.
Table 2.4 Types of SCPI Command Parameter and Response
Parameter Type
Response Data Type
Numeric
Real or Integer
Extended Numeric
Integer
Discrete
Discrete
Boolean
Numeric Boolean
String
String
Block
Definite Length Block
Indefinite Length Block
Non-decimal numeric
Hexadecimal
Octal
Binary
Numeric parameter
Numeric parameters can be used in both instrument-specific commands and common commands. It
receives all common decimal systems including signs, decimal point and scientific notation. If a certain
piece of equipment only receives a specified type of numeric parameter such as an integer, it will
automatically round off the received numeric parameter.
Examples of numeric parameter:
0
No decimal point
100
Optional decimal point
1.23
With a sign bit
4.56e<space>3space allowed after exponent marker e