Agilent Technologies 3458A User Manual page 78

Hide thumbs Also See for 3458A:
Table of Contents

Advertisement

enabled still respond to their corresponding conditions. They do not,
however, set bit 6 or assert SRQ. The following program is an example of
interrupts using HP Series 200/300 BASIC.
10 !HI/LO LIMIT EXCEEDED,ERROR, POWER CYCLED INTERRUPT
20 OUTPUT 722;"PRESET NORM"
30 OUTPUT 722; "CSB"
40 ON INTR 7 GOTO 90
50 ENABLE INTR 7;2
60 OUTPUT 722;"RQS 42;MATH PFAIL;SMATH MIN -5;SMATH MAX
5"
70 OUTPUT 722;"TRIG AUTO"
80 GOTO 80
90 OUTPUT 722; "STB?"
100 ENTER 722;A
110 IF BINAND (A,2) THEN PRINT "HI/LO LIMIT EXCEEDED"
120 IF BINAND (A,8) THEN PRINT "POWER WAS CYCLED"
130 IF BINAND (A,32) THEN PRINT "ERROR OCCURRED"
140 END
Line 20 presets the multimeter, which suspends triggering. Line 30 clears the
status register. Line 40 instructs the controller to go to line 90 should an
interrupt occur. Line 50 enables SRQ interrupts on the GPIB interface. Line
60 enables the hi/lo limit, power-on, and error bits to assert SRQ. Line 60
also enables the real-time pass/fail math operation with the values of -5 for
the low limit and +5 for the hi limit. Line 70 enables automatic triggering.
Line 80 causes the controller to wait for an interrupt. Lines 90 through 130
read the status register and print which condition(s) caused the interrupt.
78 Chapter 3 Configuring for Measurements

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents