LCX_UserManual_en_08_1.pdf - 第182页
Remote control commands R&S ® LCX Series 182 User Manual 1 179.2260.02 ─ 08 1 1.2 Programming examples The corresponding sections of the same title provide simple programming examples for the R&S LCX. The purpose…

Remote control commands
R&S
®
LCX Series
181User Manual 1179.2260.02 ─ 08
11 Remote control commands
In the following, all remote-control commands are presented in detail with their param-
eters and the ranges of numerical values.
For an introduction to remote control and the status registers, see:
●
Section 10, "Network operation and remote control", on page 149
●
Section 10.2.4, "Status reporting system", on page 156
See also the list of commands in alphabetical order at the end of this user manual.
11.1 Conventions used in SCPI command description
Note the following conventions used in the remote command descriptions:
●
Command usage
If not specified otherwise, commands can be used both for setting and for querying
parameters.
If a command can be used for setting or querying only, or if it initiates an event, the
usage is stated explicitly.
●
Parameter usage
If not specified otherwise, a parameter can be used to set a value and it is the
result of a query.
Parameters required only for setting are indicated as Setting parameters.
Parameters required only to refine a query are indicated as Query parameters.
Parameters that are only returned as the result of a query are indicated as Return
values.
●
Conformity
Commands that are taken from the SCPI standard are indicated as SCPI con-
firmed. All commands used by the R&S LCX follow the SCPI syntax rules.
●
Asynchronous commands
A command which does not automatically finish executing before the next com-
mand starts executing (overlapping command) is indicated as an Asynchronous
command.
●
Reset values (*RST)
Default parameter values that are used directly after resetting the instrument (*RST
command) are indicated as *RST values, if available.
●
Factory preset values
Default parameter values that are reset only by factory preset.
●
Default unit
The default unit is used for numeric values if no other unit is provided with the
parameter.
●
Manual operation
If the result of a remote command can also be achieved in manual operation, a link
to the description is inserted.
Conventions used in SCPI command description

Remote control commands
R&S
®
LCX Series
182User Manual 1179.2260.02 ─ 08
11.2 Programming examples
The corresponding sections of the same title provide simple programming examples for
the R&S LCX. The purpose of the examples is to present all commands for a given
task. In real applications, one would rather reduce the examples to an appropriate sub-
set of commands.
The programming examples have been tested with a software tool which provides an
environment for the development and execution of remote tests. To keep the examples
as simple as possible, only the "clean" SCPI syntax elements are reported. Non-exe-
cutable command lines (for example comments) start with two // characters.
At the beginning of the most remote control programs, we recommend that you
(p)reset the instrument to set the R&S LCX to a definite state. The commands *RST
and SYSTem:PRESet are equivalent for this purpose. *CLS also resets the status reg-
isters and clears the output buffer.
In all the examples we assume that:
●
A remote PC is connected to the instrument
●
The remote PC and the instrument are switched on
●
A connection between them is established
11.3 Common commands
Common commands are described in the IEEE 488.2 (IEC 625-2) standard. These
commands have the same effect and are employed in the same way on different devi-
ces. The headers of these commands consist of "*" followed by three letters. Many
common commands are related to the Status Reporting System.
We recommend that you reset the R&S LCX with *RST on page 184 to set the instru-
ment to a defined status before starting any remote control sequence.
The R&S LCX does not support parallel processing of remote commands. If the query
*OPC? (see *OPC on page 183) returns a „1“, the device is able to process new com-
mands.
Available common commands:
*CLS.............................................................................................................................183
*ESE.............................................................................................................................183
*ESR?...........................................................................................................................183
*IDN?............................................................................................................................183
*OPC............................................................................................................................183
*RCL.............................................................................................................................184
*RST.............................................................................................................................184
*SAV.............................................................................................................................184
*SRE............................................................................................................................ 184
Common commands

Remote control commands
R&S
®
LCX Series
183User Manual 1179.2260.02 ─ 08
*STB?...........................................................................................................................185
*TRG............................................................................................................................ 185
*WAI.............................................................................................................................185
*CLS
Clear status
Sets the status byte (STB), the standard event register (ESR) and the EVENt part of
the QUEStionable and the OPERation registers to zero. The command does not
alter the mask and transition parts of the registers. It clears the output buffer.
Usage: Setting only
*ESE <Value>
Event status enable
Sets the event status enable register to the specified value. The query returns the con-
tents of the event status enable register in decimal form.
Parameters:
<Value> Range: 0 to 255
*ESR?
Event status read
Returns the contents of the event status register in decimal form and then sets the reg-
ister to zero.
Return values:
<Contents> Range: 0 to 255
Usage: Query only
*IDN?
Returns the instrument identification.
Return values:
<ID> Rohde&Schwarz,<device type>,<order number>/<serial num-
ber>,<firmware version> <hardware version>
Example:
Rohde&Schwarz,LCX200,3629.8856k03/900020,02.018
Usage: Query only
*OPC
Operation complete
Common commands