Pass/Fail - Agilent Technologies 3458A User Manual

Hide thumbs Also See for 3458A:
Table of Contents

Advertisement

operation. That is the readings do not have to be recalled from memory in
order to perform the STAT operation. Also notice that the readings must be
stored before enabling the post-process STAT operation (if not, the
MEMORY ERROR will occur).
10 OUTPUT 722;"PRESET NORM"
20 OUTPUT 722;"MEM FIFO"
30 OUTPUT 722;"NRDGS 20"
40 OUTPUT 722;"TRIG SGL"
50 OUTPUT 722;"MMATH STAT"
60 OUTPUT 722;"RMATH SDEV"
70 ENTER
722;S
80 PRINT
S
90 END

Pass/Fail

The PFAIL math operation tests each reading against the limits set in the
MAX and MIN registers. If a boundary is exceeded, the hi/low bit of the
status register is set. Also, the number of readings that passed the PFAIL
operation before a failure was encountered are logged in the PFAILNUM
register. The default value is 0 for both the MAX and MIN registers. You
can change the value in either register using the SMATH command.
The following program uses the real-time PFAIL operation to check 20 DCV
readings against the high and low limits of 11V and 9V. After the readings
have been triggered, the HI/LO LIMIT bit of the status register (bit 2) is
checked. If one or more failures occurred, the PFAILNUM register is queried
and its contents returned.
10
OPTION BASE 1
20
DIM Rdgs(20)
30
OUTPUT 722; "PRESET NORM"
40
OUTPUT 722;"MATH PFAIL"
50
OUTPUT 722;"SMATH MIN 9"
60
OUTPUT 722;"SMATH MAX 11"
70
OUTPUT 722;"CSB"
80
OUTPUT 722;"RQS 2"
90
OUTPUT 722;"NRDGS 20"
100 ENTER 722;Rdgs(*)
110 OUTPUT 722; "STB?"
120 ENTER 722;A
130 IF BINAND(A,2) THEN
140 PRINT "HI/LOW LIMIT TEST FAILED"!PRINT FAILURE MESSAGE
150 OUTPUT 722; "RMATH PFAILNUM"
160 ENTER 722;B
170 PRINT "NUMBER OF READINGS THAT PASSED BEFORE FAILURE WERE";B
175
180 ELSE!IF BIT 2 WAS NOT SET:
190 PRINT "HI/LOW LIMIT TEST PASSED"!PRINT TEST PASSED MESSAGE
200 END IF
210 END
The following program is similar to the preceding program except that it uses
the post-process PFAIL operation on 20 readings stored in memory. The post
process PFAIL operation is a batch operation. That is, the readings do not
have to be recalled from memory in order to perform the PFAlL operation.
Also notice that the readings must be stored before enabling the post process
PFAIL operation (if not, the MEMORY ERROR will occur).
!PRESET, NRDGS 1,AUTO, DCV 10, TRIG SYN
!ENABLE READING MEMORY, FIFO MODE
!20 READINGS PER TRIGGER
!TRIGGER READINGS
!PERFORM POST-PROCESS STAT OPERATION
!READ STANDARD DEVIATION
!ENTER STANDARD DEVIATION
!PRINT STANDARD DEVIATION
!COMPUTER ARRAY NUMBERING STARTS AT 1
!DIMENSION ARRAY FOR 20 READINGS
!PRESET, NRDGS 1,AUTO, DCV 10, TRIG SYN
!ENABLE REAL-TIME PFAIL OPERATION
!LOWER LIMIT = 9(V)
!UPPER LIMIT = 11(V)
!CLEAR STATUS REGISTER
!ENABLE HI/LO STATUS REGISTER BIT
!20 READINGS/TRIGGER
!SYN EVENT, ENTER READINGS
!QUERY SET BITS IN STATUS REGISTER
!ENTER QUERY RESPONSE
!IF BIT 2 IS SET:
!QUERY PFAILNUM REGISTER
!ENTER QUERY RESPONSE
!PRINT PFAILNUM RESPONSE
Chapter 4 Making Measurements
123

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents