Hp E1368A User Manual Page 44

  • Download
  • Add to my manuals
  • Print
  • Page
    / 88
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 43
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 (0-9) is specified in the
<numeric_state> parameter. The
following settings are saved:
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 (0-9) in the
<numeric_state> parameter of the desired
saved state. If
*SAV was not previously executed using the selected
number, the Microwave Switch will configure to the reset values.
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]
10 OUTPUT 70915; “CLOS(@100);: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
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
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Page view 43
1 2 ... 39 40 41 42 43 44 45 46 47 48 49 ... 87 88

Comments to this Manuals

No comments