Remote Control Basics
R&S
®
NRPxxS(N)
161
User Manual 1177.5079.02 ─ 10
Several commands in a command line must be separated by a semicolon ";". If the
next command belongs to a different command system, the semicolon is followed by a
colon.
If the successive commands belong to the same system, having one or several levels
in common, the command line can be abbreviated. To this end, the second command
after the semicolon starts with the level that lies below the common levels. The colon
following the semicolon must be omitted in this case.
Example:
TRIG:LEV 0.1mW;TRIG:DEL 3E-3
This command line contains two commands. Both commands are part of the
TRIG
command system, i.e. they have one level in common.
When abbreviating the command line, the second command begins with the level
below
TRIG
. The colon after the semicolon is omitted. The abbreviated form of the
command line reads as follows:
TRIG:LEV 0.1E-3;DEL 3E-3
A new command line always begins with the complete path.
Example:
TRIG:LEV 0.1E-3
TRIG:DEL 3E-3
11.2.6
Responses to Queries
A query is defined for each setting command unless explicitly specified otherwise. It is
formed by adding a question mark to the associated setting command. According to
SCPI, the responses to queries are partly subject to stricter rules than in standard
IEEE 488.2.
●
The requested parameter is transmitted without a header.
Example:
TRIG:SOUR?
, Response:
INT
●
Maximum values, minimum values and all other quantities that are requested via a
special text parameter are returned as numeric values.
●
Numeric values are output without a unit. Physical quantities are referred to the
basic units or to the units set using the
Unit
command. The response
3.5E9
for
example stands for 3.5 GHz.
●
Truth values (Boolean values) are returned as
0
(for
OFF
) and
1
(for
ON
).
Example:
Setting command:
SENS:AVER:COUN:AUTO ON
Query:
SENS:AVER:COUN:AUTO?
Response:
1
●
Text (character data) is returned in a short form.
Example:
Setting command:
TRIGger:SOURce INTernal
Query:
TRIG:SOUR?
SCPI Command Structure