User`s manual
1 !Call controller subprogram "Errmsg" when a programming error occurs.
2 !Enable the controller to respond to an interrupt from the instrument.
10 ON INTR 7 CALL Errmsg
20 ENABLE INTR 7;2
21 !Unmask the Event Status bit in the instrument’s Status Byte register.
22 !Unmask error conditions in instrument’s Standard Event Status
Register.
30 OUTPUT 70903;"*SRE 32"
40 OUTPUT 70903;"*ESE 60"
41 !Program the instrument for the application
50 OUTPUT 70903;"...
60 OUTPUT 70903;"...
70 OUTPUT 70903;"...
71 !Allow the controller to respond if an error occurs.
80 WAIT 2
90 END
91 !When an error occurs, clear the instrument to regain control. Execute a
92 !serial poll to clear the service request bit in the Status Byte register.
93 !Read all error messages in the instrument’s error queue. Clear all bits in
94 !the instrument’s Standard Event Status register.
100 SUB Errmsg
110 DIM Message$[256]
120 CLEAR 70903
130 B=SPOLL 70903
140 REPEAT
150 OUTPUT 70903;"SYST:ERR?"
160 ENTER 70903;Code,Message$
170 PRINT Code,Message$
180 UNTIL Code=0
190 OUTPUT 70903;"*CLS"
200 STOP
210SUBEND
NOTE For information on an instrument’s Status Byte and Standard Event Status
registers, refer to the Agilent E1406 Command Module User’s Manual or
the "Beginner’s Guide to SCPI" .
B-8 Configuration and Start-up Errors C-Size Configuration Guide