2
Remote Control
2.1 Remote control basis
21
Table 2.8 Resetting Status Report System
Event
Power On/Off
(Power-on
status
cleared)
DCL, SDC
(Instrument
cleared, selected
instrument cleared)
*RST or
SYSTem:
PRESet
STATus:
PRESet
*CLS
0 1
Clearing STB, ESR
—
Yes
—
—
—
Yes
Clearing SRE, ESE
—
Yes
—
—
—
—
Clearing PPE
—
Yes
—
—
—
—
Clearing the event part of the
register
—
Yes
—
—
—
Yes
Clear the enable part in the
operation and inquiry registers.
Filling 1 in the enable part of
other registers.
—
Yes
—
—
Yes
—
The positive transfer part is
filled with 1. Clear the negative
transfer part.
—
Yes
—
—
Yes
—
Clearing the error queue
Yes
Yes
—
—
—
Yes
Clearing the output buffer area
Yes
Yes
Yes
—
—
—
Clearing
the
command
processing and input buffer
area
Yes
Yes
Yes
—
—
—
2.1.7
Programming considerations
1) Please initialize the instrument status before changing the settings
When setting up the instrument remotely, you need to initialize the instrument status (for example, send
“*RST”) and then implement the desired status settings.
2) Command sequence
In general, the setting and query commands should be sent separately; otherwise the returned value of
the query command will change according to the current instrument operation sequence.
3) Failure response
The service request can only be initiated by the instrument itself. The controller program in the test
system should instruct the instrument to initiate a service request when an error occurs, and then enter
the corresponding interrupt service routine for processing.
4) Error queue
Each time the controller program processes a service request, the error queue rather than the status
register of the instrument should be queried to obtain a more accurate error reason. The error queue
should be frequently queried to obtain the wrong command sent by the controller to the instrument
especially during testing of the controller program.
Function