LCX_UserManual_en_08_1.pdf - 第183页
Remote control commands R&S ® LCX Series 183 User Manual 1 179.2260.02 ─ 08 *STB? ........................................................................................................................... 185 *TRG .…

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

Remote control commands
R&S
®
LCX Series
184User Manual 1179.2260.02 ─ 08
Sets bit 0 in the event status register when all preceding commands have been execu-
ted. This bit can be used to initiate a service request. The query writes a "1" into the
output buffer when all preceding commands have been executed, which is useful for
command synchronization.
*RCL <Number>
Recall
Loads the instrument settings from an intermediate memory identified by the specified
number. The instrument settings can be saved to this memory using the command
*SAV with the associated number.
Manual operation:
See "Recall Settings from file..." on page 143
*RST
Reset
Sets the instrument to a defined default status. The default settings are indicated in the
description of commands.
Usage:
Setting only
Manual operation: See "Default Settings" on page 143
*SAV <Number>
Save
Stores the current instrument settings under the specified number in an intermediate
memory. The settings can be recalled using the command *RCL with the associated
number.
Manual operation:
See "Save Settings to file..." on page 143
*SRE <Contents>
Service requests enable
Sets the service request enable register to the indicated value. This command deter-
mines under which conditions a service request is triggered.
The query *SRE? returns a decimal value of the service request enable register which
corresponds to the binary-weighted sum of all bits.
Parameters:
<Contents> Contents of the service request enable register in decimal form.
Bit 6 (MSS mask bit) is always 0.
Range: 0 to 255
Common commands