Digitize Program - HP 54501A Programming Reference Manual

Digitizing oscilloscope
Hide thumbs Also See for 54501A:
Table of Contents

Advertisement

Digitize
Program
This sample program demonstrates
some
of
the commands used to
digitize
a
waveform.
The
program
assumes
that the
AC CAL
signal from
the rear panel
of
the instrument
is
connected to channel
1
through
a
10:1
probe.
10
20
30
40
50
60
70
80
90
100
110
120
130
140
150
160
170
180
190
200
210
220
230
240
250
260
270
280
290
300
310
320
330
340
350
360
CLEAR 707
!initia1izes
HP-IB
registers.
i
OUTPUT
707;":EOI
ON"
OUTPUT
707;"*RST"
OUTPUT
707;":AUTOSCALE"
WAIT 3
OUTPUT
707;":BNC
PROBE"
OUTPUT
707
OUTPUT
707
OUTPUT 707
OUTPUT
707
OUTPUT
707
OUTPUT
707
!
i
ACQUIRE:TYPE
NORMAL"
CHANNELl:PROBE
10"
CHANNEL1:RANGE
1.6"
CHANNELl:OFFSET
-.4"
CHANNELl
COUPLING
DC"
TIMEBASE:RANGE
1E-7"
OUTPUT 707;":WAVEFORM:SOURCE CHANNELl"
OUTPUT 707;":ACQUIRE:COMPLETE
30"
OUTPUT
707;":ACQUIRE:POINTS 32"
OUTPUT
707;":DI6ITIZE
CHANNELl"
REAL
Pts.Cmp
INTEGER
J
OUTPUT
707;":BEEPER"
OUTPUT
707;":SYSTEM:DSP
'PRESS ENTER
-
CHANGES NUMBER OF POINTS
DISPLAYED'"
ENTER 2
OUTPUT
707;":SYSTEM:DSP
""
Pts=32
i
'The
following lines
increase the
number
of points
for
"each
acquisition
record
HP 54501A
Programming
!Device
clear
command.
!Turn
on EOI
!Reset
instrument to
'known
state
'Autoscales the
unit
!BNC
output to
probe
mode
!Set
display
mode
to
normal
!Set
probe
attenuation
to
10:1
Set
vertical
range
to 1.6
V
'Set
offset
to
-0.4
V
!Set coupling to
DC
'10
ns
per
division
'Selects
channel
1 as
the source
!30X
completion
criteria
for
'each
acquisition
!32
points
for
'each
acquisition
record
'Set
up
Pts
and Cmp
!as
variables
'Set
up J
as
a
variable
•Set Pts
variable
to
32
Example Programs
B-9

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents