Reference Information for Remote Control
R&S
®
SMA100B
528
User Manual 1178.3834.02 ─ 03
The returned value is always a decimal number that represents the bit pattern of the
queried register. This number is evaluated by the controller program.
Queries are usually used after an SRQ in order to obtain more detailed information on
the cause of the SRQ.
Error Queue
Each error state in the instrument leads to an entry in the error queue. The entries of
the error queue are detailed plain text error messages that can be looked up in the
Error Log or queried via remote control using
SYSTem:ERRor[:NEXT]?
. Each call of
SYSTem:ERRor[:NEXT]?
provides one entry from the error queue. If no error mes-
sages are stored there any more, the instrument responds with 0, "No error".
The error queue should be queried after every SRQ in the controller program as the
entries describe the cause of an error more precisely than the status registers. Espe-
cially in the test phase of a controller program the error queue should be queried regu-
larly since faulty commands from the controller to the instrument are recorded there as
well.
A.1.5.8
Reset Values of the Status Reporting System
The following table contains the different commands and events causing the status
reporting system to be reset. None of the commands, except of
*RST
and
SYSTem:PRESet
affect the functional instrument settings. In particular,
DCL
does not
change the instrument settings.
Table A-9: Resetting the status reporting system
Event
Switching on supply
voltage
Power-On-Status-
Clear
DCL,
SDC
(Device
Clear,
Selected
Device
Clear)
*RST
or
SYSTem:
PRESet
STATus:
PRESet
*CLS
Effect
0
1
Clear STB, ESR
-
Yes
-
-
-
Yes
Clear SRE, ESE
-
Yes
-
-
-
-
Clear PPE
-
Yes
-
-
-
-
Clear error queue
Yes
Yes
-
-
-
Yes
Clear output buffer
Yes
Yes
Yes
1)
1)
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.
Additional Basics on Remote Control