Error handling
If there is no error-handling code in your program, undetected errors can cause
unpredictable results. This includes "hanging up" the controller and forcing you to
reset the system. Both of the above DOS drivers have routines for detecting
program execution errors.
Use error detection after every call to a subroutine.
NOTE
Keysight BASIC controllers
The Keysight BASIC Programming Language provides access to GPIB functions at
the operating system level. This makes it unnecessary to have the header files
required in front of DOS applications programs. Also, you do not have to be
concerned about controller "hangups" as long as your program includes a timeout
statement. Because the ac source can be programmed to generate Service
Request (SRQ) on errors, your program can use an SRQ service routine for
decoding detected errors. The detectable errors are listed in
Messages".
Keysight Models 6811C, 6812C, and 6813C Programming Guide
Introduction to Programming
Appendix C, "Error
2
51