To Optimize Throughput (Hp Basic) - HP 53131A/132A 225 MHz Programming Manual

225 mhz universal counter
Table of Contents

Advertisement

10
! This program shows how to set up the counter to transfer data at the
20
! fastest possible rate. Note that the arming mode is AUTO. This mode
30
! provides the least resolution of all arming modes.
40
! The program comments discuss the meaning of each command.
50
! ASCII result format is to preserve resolution.
60
!
70
CLEAR SCREEN
80
INTEGER I
90
DIM A$(200)[22],Dummy$[22]
100
ASSIGN @Count TO 703
110
CLEAR 703
120
OUTPUT @Count;"*RST"
130
OUTPUT @Count;"*CLS"
140
OUTPUT @Count;"*SRE 0"
150
OUTPUT @Count;"*ESE 0"
160
OUTPUT @Count;":STAT:PRES"
170
180
190
! The following lines will provide the highest throughput, regardless
200
! of the state of the counter before these lines are executed.
210
OUTPUT @Count;":FORMAT ASCII"
220
OUTPUT @Count;":FUNC 'FREQ 1'" ! Select frequency
230
OUTPUT @Count;":EVENT1:LEVEL 0"
240
OUTPUT @Count;":FREQ:ARM:STAR:SOUR IMM" ! These two lines enable the
250
OUTPUT @Count;":FREQ:ARM:STOP:SOUR IMM" ! AUTO arming mode.
260
OUTPUT @Count;":ROSC:SOUR INT"
270
280
290
300
310
320
330
OUTPUT @Count;":DIAG:CAL:INT:AUTO OFF" ! Disable automatic interpolater
340
350
360
370
OUTPUT @Count;":DISP:ENAB OFF"
380
390
400
OUTPUT @Count;":CALC:MATH:STATE OFF"
410
OUTPUT @Count;":CALC2:LIM:STATE OFF"
420
OUTPUT @Count;":CALC3:AVER:STATE OFF"
430
OUTPUT @Count;":HCOPY:CONT OFF"
440
OUTPUT @Count;"*DDT #15FETC?"
450
460
470
480
490
Chapter 3 Programming Your Universal Counter for Remote Operation
Elements of SCPI Commands

To Optimize Throughput (HP BASIC)

! Clear the counter and interface
! Reset the counter
! Clear event registers and error queue
! Clear service request enable register
! Clear event status enable register
! Preset enable register and transition
! filters for operation and questionable
! status structures.
Programming Guide
! ASCII format for fastest throughput
! Set Ch 1 trigger level to 0 volts
! Use internal oscillator. If
! you want to use an external
! timebase, you must select it
! and turn off the automatic
! detection using:
! :ROSC:EXT:CHECK OFF
!
! calibration. The most recent
! calibration values are used in
! the calculation of frequency
! Turn off the counter display
! This greatly increases
! measurement throughput.
! Disable any post processing.
! Disable any printing operation
! Define the Trigger command
! This means the command FETC?
! does not need to be sent for
! every measurement, decreasing
! the number of bytes
! transferred over the bus.
3-73

Advertisement

Table of Contents
loading

This manual is also suitable for:

53131a53132a

Table of Contents