beautypg.com

Error query e – Measurement Computing Serial488/4 User Manual

Page 45

background image

Section 3

Command Descriptions

3.6

Error Query

E?

The Error Query is used to determine the present error condition of the

Serial488/4. After execution of the Error Query, the present error condition is cleared.
The error condition is also returned and cleared by the status Un command.

E?

Return and clear present error condition

Example1: Query the error status using dual primary addressing mode.

PRINT#1,"OUTPUT08;E?"

request error status

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

display shows E0, No errors

Example2: Query the error status using secondary addressing mode.

PRINT#1,"OUTPUT0800;W5X"

send an illegal command to the Serial488/4

PRINT#1,"OUTPUT0800;E?"

request error status

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

display shows E1, unrecognized command

PRINT#1,"OUTPUT0800;E?"

request error status again

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

display shows E0, error condition has

been cleared after reading error status

This manual is related to the following products: