Checking For Errors - HP E1472A User Manual

Six 1x4, 50- and 75-ohm rf multiplexer and expander
Table of Contents

Advertisement

Checking for Errors

Chapter 3
There are two general approaches to error checking. The simplest, but most time
consuming, is to ask the instrument whether there are errors at every step of the
switching process. This is called " polling" and is illustrated in the example shown
below.
05
DIM Err_num$ [256]
10
OUTPUT 70915; "CLOS(@101);:SYST:ERR?"
20
ENTER 70915;Err_num$
30
IF VAL (Err_num$) <> 0 THEN
40
PRINT "Error";Err_num$
50
STOP
60
END IF
70 . . . (program continues)
The other approach involves the use of interrupts. The following program
is a method of checking for errors using interrupts as you program the RF
Multiplexer. The program monitors the RF Multiplexer's Standard Event
Status Register for an error condition. If no errors occur, the RF Multiplexer
functions as programmed. If errors do occur, the RF Multiplexer interrupts
the computer, and the error codes and messages are read from the error queue. This
approach requires less checking but is more complex.
For the example, use:
• an HP-IB select code of 7, primary address of 09, and secondary address of
15 for the RF Multiplexer
• an HP Series 200/300 Computer with HP BASIC
Using the RF Multiplexer 35

Advertisement

Table of Contents
loading

This manual is also suitable for:

E1473aE1474aE1475a

Table of Contents