HP 53131A/132A 225 MHz Programming Manual page 135

225 mhz universal counter
Table of Contents

Advertisement

500
OUTPUT @Count;":CALC3:LFIL:STATE ON"
510
OUTPUT @Count;":CALC3:LFIL:LOWER ";Lower
520
OUTPUT @Count;":CALC3:LFIL:UPPER ";Upper
530
OUTPUT @Count;":CALC3:AVER ON"
540
OUTPUT @Count;":CALC3:AVER:COUNT ";Num_meas! Set number of
550
560
OUTPUT @Count;":CALC2:LIM:STATE ON"
570
580
590
OUTPUT @Count;":CALC2:LIM:LOWER ";Lower
600
OUTPUT @Count;":CALC2:LIM:UPPER ";Upper
610
OUTPUT @Count;":CALC2:LIM:DISP GRAPH"
620
!
630
ON INTR 7 GOTO Stats_ready
640
ENABLE INTR 7;2
650
PRINT "Waiting for measurement to complete"
660
OUTPUT @Count;":INIT:CONT ON"
670 Loop_here:
!WAITING FOR STATISTICS TO COMPLETE
680
GOTO Loop_here
690
!
700 Stats_ready:
710
S=SPOLL(703)
720
OUTPUT @Count;":INIT:CONT OFF"
730
OUTPUT @Count;":CALC3:AVERAGE:TYPE MAX;:CALC3:DATA?"
740
ENTER @Count;Maximum$
750
OUTPUT @Count;":CALC3:AVERAGE:TYPE MIN;:CALC3:DATA?"
760
ENTER @Count;Minimum$
770
OUTPUT @Count;":CALC3:AVERAGE:TYPE MEAN;:CALC3:DATA?"
780
ENTER @Count;Mean$
790
OUTPUT @Count;":CALC3:AVERAGE:TYPE SDEV;:CALC3:DATA?"
800
ENTER @Count;Sdev$
810
PRINT
820
PRINT "Serial Poll Result = ";S
830
PRINT
840
PRINT USING "21A,22A,X,8A";"Minimum Period
850
PRINT USING "21A,22A,X,8A";"Maximum Period
860
PRINT USING "21A,22A,X,8A";"Mean Period
870
PRINT USING "21A,22A,X,8A";"Standard Deviation = ";Sdev$;" seconds"
880
LOCAL 703
890
END
Chapter 3 Programming Your Universal Counter for Remote Operation
Elements of SCPI Commands
To Use Limits to Filter Data Before Measuring Stats (HP
BASIC) (Continued)
!Statistics are ready
! Serial poll to see if correct bit is set.
Programming Guide
! Enable statistics filter
! Set the lower limit
! Set the upper limit
! Enable statistics
! measurements for stats.
! Enable limit testing. This
! must happen in order to
! see the limit graph.
! Set the limits lower limit
! Set the limits upper limit
! Display the limit graph
! Where to go when statistics ready
! Enable interrupt on SRQ
! Set counter to RUN
! Stop making new measurements
! Should be 192
= ";Minimum$;" seconds"
= ";Maximum$;" seconds"
= ";Mean$;" seconds"
! Put counter is local
3-67

Advertisement

Table of Contents
loading

This manual is also suitable for:

53131a53132a

Table of Contents