To Use Limits To Filter Data Before Measuring Stats (Hp Basic) - HP 53131A/132A 225 MHz Programming Manual

225 mhz universal counter
Table of Contents

Advertisement

10
! This program instructs the counter to determine the statistics of
20
! 50 Period measurements that are within the limits defined by the
30
! variables "Upper" and "Lower". Periods that are outside of
40
! the limits are not included in the statistics. The Limit graph is
50
! displayed so you can see if measurements are in limit.
60
! To alert the program that the statistics are ready, bit 8 in the
70
! Operation Status register is used. When statistics are being
80
! calculated, this bit is high, when they are complete, the bit goes
90
! low. By using the transition filters, an SRQ can be generated when
100
! statistics are complete.
110
! ASCII format is used to preserve resolution.
120
!
130
INTEGER I,Num_meas
140
DIM Sdev$[22],Mean$[22],Minimum$[22],Maximum$[22]
150
Num_meas=50
160
Upper=1.10E-7
170
Lower=1.00E-7
180
CLEAR SCREEN
190
ASSIGN @Count TO 703
200
CLEAR 703
210
OUTPUT @Count;"*RST"
220
OUTPUT @Count;"*CLS"
230
OUTPUT @Count;"*SRE 0"
240
OUTPUT @Count;"*ESE 0"
250
OUTPUT @Count;":STAT:PRES" ! Preset enable registers and transition
260
270
280
OUTPUT @Count;":FUNC 'PER'"
290
300
310
320
330
OUTPUT @Count;":FREQ:ARM:STAR:SOUR IMM"
340
OUTPUT @Count;":FREQ:ARM:STOP:SOUR TIM"
350
OUTPUT @Count;":FREQ:ARM:STOP:TIM .01"
360
OUTPUT @Count;":STAT:OPER:ENABLE 256"
370
380
OUTPUT @Count;":STAT:OPER:NTR 256"
390
OUTPUT @Count;":STAT:OPER:PTR 0"
400
410
420
430
440
OUTPUT @Count;"*SRE 128"
450
460
470
480
490
Chapter 3 Programming Your Universal Counter for Remote Operation
Programming Examples
To Use Limits to Filter Data Before Measuring Stats (HP
BASIC)
! Statistics based on num_meas measurements
! Upper period to be included in statistics
! Lower period to be included in statistics
! Clear the counter and interface
! Reset the counter
! Clear event registers and error queue
! Clear service request enable register
! Clear event status enable register
! filters for operation and questionable
! status structures.
3-66
! Measure frequency on channel 1
! Note that the function must be
! a quoted string. The actual
! string sent to the counter
! is "PER".
! These three lines enable
! time arming with a 0.01
! second gate time.
! Computing Statistics bit in
! Operation status register
! When statistics are complete,
! the bit will go from high to low
! so a negative transition is
! needed to enable the bit that
! is summarized in the Status Byte
! Register.
! This is the bit from the
! Operation Status register that is
! summarized in the Status Byte
! Register.
! When it goes high, SRQ will be
! asserted.
Programming Guide

Advertisement

Table of Contents
loading

This manual is also suitable for:

53131a53132a

Table of Contents