Vertical Channel Setup Program - HP 54501A Programming Reference Manual

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

Advertisement

Vertical
Channel Setup
Program
This sample program demonstrates
some
of the commands
used to
set
a
vertical channel, in
this
case channel
1.
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.
The program
sets
the probe
attenuation
factor for
channel
1
to 10:1.
10
CLEAR
707
!Dev
20
!ini
30
!
40
OUTPUT
707
50
OUTPUT
707
60
70
OUTPUT
707
80
WAIT
3
90
OUTPUT
707
100
OUTPUT
707
110
OUTPUT 707
120
OUTPUT
707
130
OUTPUT
707
140
OUTPUT
707
150
REAL
Offset,Range
'Set
160
!as
170
INTEGER J
'Set
180
Offsets
6
'Set
190
OUTPUT
707;":BEEPER"
200
OUTPUT
707;":SYSTEM:OSP
'PRESS ENTER
-
OFFSET
POSITIONS
WAVEFORM ON S
210
ENTER 2
220
OUTPUT
707;":SYSTEM:DSP
""
230
!
240
'The
following Unes vary
the channel
1
offset
250
!
260
FOR
J=l
TO 18
270
OUTPUT
707;":CHANNEL1:OFFSET
".Offset"
'Set
280
Offset=0ffset-.l
290
WAIT
.5
300
NEXT J
310
!
320
OUTPUT
707;":BEEPER"
330
OUTPUT
707;":SYSTEM:OSP
'PRESS ENTER
-
VERTICAL
RANGE SCALES
SIGNAL'"
340
ENTER 2
350
OUTPUT
707;":SYSTEM:OSP
""
"
"*
"
"
"
"
"
"
"
EOI ON"
!Tur
"RST"
!Res
!kno
AUTOSCALE"
'Aut
BNC PROBE"
'BNC
ACOUIRE:TYPE
NORMAL"
'Rea
CHANNELl:PROBE
10"
'Set
CHANNEL
1:RANGE
.5"
'Set
CHANNELl:OFFSET
.6"
!Set
CHANNELl
COUPLING
OC"
'Set
'Device clear
cornnand.
!initializes
HP-IB
registers.
'BNC
output
to
probe
mode
'Real time
acquisition
'Set
probe
attenuation to
10:1
'Set
vertical
range
to
500
mV
!Set
offset
to 0.6
V
'Set coupling to
DC
'Set
up
Offset
and Range
!as
variables
'Set
up J as
variable
'Set Offset
variable
to 0.6
V
!Sets next
offset
Example Programs
B-2
HP 54501A
Programming

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents