Error query e – Measurement Computing Analyzer488 User Manual

Page 223

Advertising
background image

Section 6

Instrument Simulator

6.13

Error Query E?

The Error Query command, E?, is used to determine the current error condition

of the Analyzer488. After execution of the Error Query command, the current error
condition is cleared. The error condition is also cleared by executing the Status (U0)
command.

SYNTAX:

E?

Return and clear current error condition

After execution of the Error command, the Analyzer488 will return
one of the following error codes:

E0

No Error has occurred

E1

Invalid Device Dependent Command (A4X, D5
etc.)

E2

Invalid Device Dependent Command Option
(G5X, K3X etc.)

EXAMPLES:

PRINT#1,"CLEAR10"

reset the Analyzer488

PRINT#1,"OUTPUT10;E?"

request error status

PRINT#1,"ENTER10"
INPUT#2,A$
PRINT A$

display shows E0, no errors have
occurred

PRINT#1,"OUTPUT10;A5X"

send an illegal command to the
Analyzer488

PRINT#1,"OUTPUT10;E?"

request error status

PRINT#1,"ENTER10"
INPUT#2,A$
PRINT A$

display shows E1-Invalid Device
Dependent Command

PRINT#1,"OUTPUT10;E?"

request error status

PRINT#1,"ENTER10"
INPUT#2,A$

Advertising