Recalling and Saving States
This section contains information about saving and recalling switch states.
Storing States The *SAV <numeric_state> command saves the current instrument state. The state number
∙Channel States (open or closed)
∙ARM:COUNt
∙TRIGger:SOURce
∙OUTPut:STATe
∙INITiate:CONTinuous
∙SCAN:MODE (not used)
∙SCAN:PORT (not used)
Recalling States The *RCL <numeric_state> command recalls a previously saved state. Enter the number
Detecting Error Conditions
This section discusses using the various Microwave Switch registers to detect if a switching operation has generated an error. 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 following example .
05 DIM Err_num$ [256]
10OUTPUT 70915; “CLOS(@100);:SYST:ERR?”
20ENTER 70915;Err_num$
30IF VAL (Err_num$) 0 THEN
40PRINT “Error”;Err_num$
50STOP
60END 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 Microwave Switch. The program monitors the Microwave Switch’s Standard Event Status Register for an error condition. If no errors occur, the Microwave Switch functions as programmed. If errors do occur, the Microwave Switch interrupts the computer, and the error codes and messages are read from the error queue. This approach requires less checking, but is more complex.
Chapter 3 | Using the HP E1368A/69A/70A Modules 43 |