Combined Measurement Example - HP 16533A Programmer's Manual

1-gsa/s and 2-gsa/s digitizing oscilloscope
Hide thumbs Also See for 16533A:
Table of Contents

Advertisement

Combined Measurement Example

This program combines three major tasks that you would use when making
measurements when controlling the oscilloscope card over the bus. The
three major tasks are initializing the interface and oscilloscope card, digitizing
the acquired signal, and measuring and printing the frequency and
peak-to-peak voltage. This program is written with subroutines in HP BASIC
6.2.
10
!
20
!
30
!MAIN PROGRAM
40
!
CLEAR SCREEN
60
PRINT "This example program will perform the following tasks:"
70
PRINT "
80
PRINT "
90
PRINT "
100
PRINT
110
PRINT "The program assumes the system is configured as:"
120
PRINT "
130
PRINT "
140
PRINT "
150
PRINT "
160
PRINT
170
PRINT "If the addresses are not correct for your configuration, change"
180
PRINT "the ASSIGN statements in the Initialize function."
190
PRINT
200
PRINT "Press Continue when ready to start program, or Shift/Break to
terminate."
210
PAUSE
220
GOSUB Initialize
230
GOSUB Get_waveform
240
GOSUB Measure
250
STOP
260
!
270
!INITIALIZE INTERFACE AND OSCILLOSCOPE
280
!
290 Initialize:
300
ASSIGN @Scope TO 707
310
ASSIGN @Isc TO 7
320
CLEAR @Isc
330
OUTPUT @Scope;":SELECT 2"
Combined Measurement Example
a.
initialize the interface and oscilloscope"
b.
digitize the signal
c.
measure and print the frequency
HP-IB address = 7"
Oscilloscope address = 7"
Oscilloscope card is in slot B"
Signal attached to channel 1"
!initialize interface and oscilloscope
!digitize signal
!measure and print frequency
!
!system address
!HP-IB address
!clear HPIB interface
!select the oscilloscope in slot B
Programming Examples
Combined Measurement Example
"
"
11–5

Advertisement

Table of Contents
loading

This manual is also suitable for:

16534a

Table of Contents