Error – Measurement Computing Analyzer488 User Manual

Page 127

Advertising
background image

Section 4

Serial Controller

4.33

ERROR

The ERROR command enables or disables automatic reporting of Analyzer488

error messages. When enabled, error messages are returned when commands are
completed. ERROR MESSAGE enables error message string reporting, ERROR
NUMBER

enables error message number reporting, and ERROR OFF disables error

reporting. ERROR OFF is the factory default condition.

The query option, ERROR?, returns the ERROR command option currently in

use.

TYPE

System command

SYNTAX

ERROR[;]{[?]|[MESSAGE|NUMBER|OFF]}

MODE

Any

BUS STATES

None

QUERY

String in the following format:

RESPONSE

ERROR MESSAGE NUMBER OFF

EXAMPLES

PRINT#1,"ERROR OFF"

Disable error message reporting.

PRINT#1,"ERROR MESSAGE"

Enable error message reporting.

INPUT#1,A$:PRINT A$

Response is error message or: OK

PRINT#1,"ERROR?"

Query current error mode.

INPUT#1,A$

Get response

PRINT A$

"ERROR MESSAGE"

Advertising