HP 82479A Owner's Manual page 212

Data acquisition pac
Table of Contents

Advertisement

Error Recovery
RESET HPIL - Resets the HP-IL interface to a known condition.
°
eo RESTORE IO - Enables I/O operations to occur on HP-IL.
eo STANDBY
- Sets the HP-IL timeout period and verify interval.
eo STATUS
- Returns the HP-IL interface status.
The general form of a recovery subprogram is as follows:
18 sUE EECOMERECED
error recovery procedure
The parameter E is a real number that is used to inform the calling program (TRE IF, MOMITOR, or
L.OG) of the results.
If RECOVER exits with E==k1 the calling program will assume that normal
execution may continue. Setting E=1 will result in the termination of the calling program.
If the calling program is your own, and not in the Data Acquisition Pac, further information could be
passed back from a custom recovery program, such as the nature of the error and the recovery attempt.
This may be done by assigning meanings to different values of E or adding additional parameters.
The following is an example of a recovery program for a system that uses two interface loops.
The
program calls the RECOVER program in UTILITY to attempt a restoration of the first loop. If the
restoration fails, the program attempts to send a message to a host computer on the second loop (using
RS-232), and the program exits with E not equal to zero, which will notify the system of the problem.
File:
FI=LOOFIMHIM
1a SUE REECOVERCED
0 CALL RECOVERCEY
IM UTILITY
=68 IF HOT E THEM EMD
48 OM ERROR GOTO o@
SB DUTFUT
tRESZz262
3
"LOOF
1
BROEEH"
®B COTO Fa
ed BEEF ® DISF "Host Mot Hotified"
FEEND UE

Advertisement

Table of Contents
loading

Table of Contents