Agilent Technologies 6843A Welding System User Manual


 
Introduction to Programming - 2
25
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.
Important Use error detection after every call to a subroutine.
Agilent BASIC Controllers
The Agilent 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 SRQ on errors, your program
can use an SRQ service routine for decoding detected errors. The detectable errors are listed in Appendix
C.