Errors; Reading An Error - Keysight 53147A Operating And Programming Manual

Microwave frequency counter/power meter/dvm
Table of Contents

Advertisement

3
Programming

Errors

This section explains how to read error messages from the instrument, discusses
the types of errors, and provides a table of all of the Instrument's error messages
and their probable causes.

Reading an Error

Executing the :SYSTem:ERRor? command reads the oldest error from the error
queue and erases that error from the queue. The :SYST:ERR? response has the
form:
An example response is:
All errors set a corresponding bit in the Standard Event Status Register (see the
section titled
The following short program reads all errors (one at a time, oldest to newest) from
the error queue. As each error is read, it is automatically erased from the error
queue. When the error queue becomes empty (that is, when all errors have been
read from the queue), further queries return the +0, "No error" response.
10 ASSIGN @Cntr TO 703
20 !Assign path name
30 DIM Err_string$[255]
40 !Creates array for error string
50 REPEAT
60 !Repeats until error queue is empty
70 OUTPUT @Cntr;"SYST:ERR?"
80 !Read error number and string
90 ENTER @Cntr;Err_num,Err_string$
100 !Enter error number and string
110 PRINT Err_num,Err_string$
120 !Print error number and string
130 UNTIL Err_num = 0
140 END
266
<error number>, <error string>
-113,"Undefined header"
"Standard Event Status Register Group"
Keysight 53147A/148A/149A Operating and Programming Guide
on page 178).

Advertisement

Table of Contents
loading

This manual is also suitable for:

53148a53149a

Table of Contents