Remote Control
R&S
®
ESRP
563
User Manual 1175.7445.02 ─ 08
Event
Switching on supply
voltage
Power-On-Status-
Clear
DCL,
SDC
(Device
Clear,
Selected
Device
Clear)
*RST or
SYS-
Tem:PRE
Set
STA-
Tus:PRE-
Set
*CLS
Effect
0
1
Clear command processing
and input buffer
yes
yes
yes
-
-
-
1) The first command in a command line that immediately follows a <PROGRAM MESSAGE TERMINA-
TOR> clears the output buffer.
11.1.7
General Programming Recommendations
Initial instrument status before changing settings
Manual operation is designed for maximum possible operating convenience. In con-
trast, the priority of remote control is the "predictability" of the instrument status. Thus,
when a command attempts to define incompatible settings, the command is ignored
and the instrument status remains unchanged, i.e. other settings are not automatically
adapted. Therefore, control programs should always define an initial instrument status
(e.g. using the *RST command) and then implement the required settings.
Command sequence
As a general rule, send commands and queries in different program messages. Other-
wise, the result of the query may vary depending on which operation is performed first
(see also Preventing Overlapping Execution).
Reacting to malfunctions
The service request is the only possibility for the instrument to become active on its
own. Each controller program should instruct the instrument to initiate a service
request in case of malfunction. The program should react appropriately to the service
request.
Error queues
The error queue should be queried after every service request in the controller pro-
gram as the entries describe the cause of an error more precisely than the status regis-
ters. Especially in the test phase of a controller program the error queue should be
queried regularly since faulty commands from the controller to the instrument are
recorded there as well.
11.1.8
The IECWIN Tool
The R&S
ESRP is delivered with
IECWIN
installed, an auxiliary tool provided free of
charge by R&S. IECWIN is a program to send SCPI commands to a measuring instru-
ment either interactively or from a command script.
Remote Control - Basics