Chapter 5 Errors
Reading an Error
Programming Guide
5-3
5
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:
<error number>, <error string>
An example response is:
-113,”Undefined header”
All errors set a corresponding bit in the Standard Event Status Register
(see the section titled “Standard Event Status Register Group” on
page 3-30).
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
Summary of Contents for 53150A Series
Page 1: ... Programming Guide HP 53150A 151A 152A Microwave Frequency Counter ...
Page 2: ......
Page 10: ...Contents x Programming Guide ...
Page 11: ...1 Before You Start ...
Page 20: ...Chapter 1 Before You Start Related Documentation 1 10 Programming Guide 1 ...
Page 21: ...2 Command Summary A Quick Reference ...
Page 41: ...3 Programming Your Counter for Remote Operation ...
Page 101: ...4 Command Reference A Dictionary ...
Page 162: ...Chapter 4 Command Reference Common Commands 4 62 Programming Guide 4 ...
Page 163: ...5 Errors ...
Page 174: ...Chapter 5 Errors Error Types 5 12 Programming Guide 5 ...
Page 184: ......
Page 186: ... Manual Part Number 53150 90002 Printed in U S A NOVEMBER 1997 ...