HP 54501A Service Manual

Errata
54501A Digitizing Oscilloscope Programming Reference 54501-90907
May 1989
Title & Document Type:
Manual Part Number:
Revision Date:
HP References in this Manual
This manual may contain references to HP or Hewlett-Packard. Please note that Hewlett­Packard's former test and measurement, semiconductor products and chemical analysis businesses are now part of Agilent Technologies. We have made no changes to this manual copy. The HP XXXX referred to in this document is now the Agilent XXXX. For example, model number HP8648A is now model number Agilent 8648A.
About this Manual
We’ve added this manual to the Agilent website in an effort to help you support your product. This manual provides the best information we could find. It may be incomplete or contain dated information, and the scan quality may not be idea l. If we find a better copy in the future, we will add it to the Agilent website.
Support for Your Product
Agilent no longer sells or supports this product. You will find any other available product information on the Agilent Test & Measurement website:
www.tm.agilent.com
Search for the model number of this product, and the resulting product page will guide you to any available information. Our service centers may be able to perform calibration if no repair parts are needed, but no other support from Agilent is available.
Programming
Reference
HP
54501A
Digitizing
Oscilloscope
Printing History
editions
New
which
pages
title
page
A
software
the
of
Many
conversely,
issued
are
merged
be
to
change
code
software
product
manual
are
product
updates
product changes.
between
Edition
product updates
1
complete
between
the
into
only
when
printed
be
may
at
and
corrections
Therefore,
revisions
editions,
manual
a
new
before
the
time
fixes do
may
do
not
and
manual
June
the
of
contain
by
the
edition
the
the
manual
not
require
be
done
expect
updates.
1989
manual.
Update
additional
customer.
is published.
this
date;
update
or
manual
without
a
one
accompanying
to
one
packages,
replacement
and
The
dates
on
indicates
the
issued.
was
changes
correspondence
and,
54501-90907
the
version
List
Effective
of
Pages
List
The
changed
pages
changed
made
were
a
edition
new
the
bottom
History
Pages
Effective
of
since
on
of
and
on
in
the
the
of
the
the
the
Pages gives
updates
last
edition
bottom
manual
and
pages
title
page.
to
of
that
the
is
the
the
date
edition.
is
indicated
page.
printed,
edition
new
Effective
the
of
Within the
printing
by
update
If
an
change
the
date
Date
current
edition
manual, any
the
date
is
incorporated when
dates
is listed
are
in
removed
the
and
page
changes
the
Printing
of
from
any
Product
Warranty
This
Hewlett-Packard
material
shipment.
its
For
service service
products
Buyer's facility area.
will
prior
travel
and
option,
warranty
facility
for
Outside
performed
be
agreement
expenses.
During
either
products
designated
product
workmanship
for
warranty
repair
service
designated
at
no
replace products
or
repair,
or
by
installed
by
Hewlett-Packard
charge
Hewlett-Packard
the
at
Buyer's
the
and
Buyer
a
has
warranty
period
a
period,
this
of
three years
Hewlett-Packard
product
Hewlett-Packard.
by
Hewlett-Packard
will
the
within
Hewlett-Packard service travel
faculty
pay
travel
only
Hewlett-Packard's
service
shall
against
defects
from
Company
that
must
prove
be
be
to
returned
However, warranty
and
certain
be
performed
warranty
areas,
Hewlett-Packard's
upon
in
date
of
will,
defective.
a
to
other
the
at
service
trip
round
at
products
For
Buyer Hewlett-Packard
the
Buyer.
and
taxes
country.
Hewlett-Packard
returned
shall
prepay
However,
for
products returned
shall
warrants
Hewlett-Packard for
programming Hewlett-Packard
software,
instructions
firmware
or
does
to
Hewlett-Packard for
shipping charges
shipping
pay
the
Buyer
shall
to
its
that
software and
use
not
will
with
instrument
an
properly installed
when
warrant
be
uninterrupted
warranty
to Hewlett-Packard
charges
to
all
shipping charges,
pay
return
Hewlett-Packard
firmware
will
execute
on
the
that
operation
or error-free.
service,
and
the
product
duties,
from another
designated
its
that
instrument.
the
of
instrument
the
to
by
Limitation
Warranty
of
foregoing
The
improper
software
outside
of the
improper
warranty
inadequate
or
interfacing,
or
environmental
site
preparation
shall
maintenance
unauthorized
apply
not
specifications
or maintenance.
defects
to
by the
Buyer,
modification
the
for
resulting
or
product,
from
Buyer-supplied
misuse,
or
operation
NO
HEWLETT-PACKARD
IMPUED
FITNESS
Exclusive
Remedies
THE
AND
NOT
INCIDENTAL,
BASED ON
THEORY.
Assistance Product
agreements
For
Office.
Certification
Hewlett-Packard
specifications
Hewlett-Packard further
traceable to
extent
calibration
members.
OTHER WARRANTY
SPECIFICALLY
WARRANTIES OF
A
FOR
PARTICULAR
REMEDIES PROVIDED
EXCLUSIVE
BE
LIABLE
REMEDIES.
FOR
ANY
OR CONSEQUENTIAL
CONTRACT,
maintenance
are
assistance,
the
allowed
facilities
available for
contact
Company
the
at
time
United
by the
of
TORT,
agreements
nearest
your
certifies
shipment
of
certifies that
States
Bureau's
other International
IS
EXPRESSED OR
IMPUED.
DISCLAIMS
MERCHANTABILITY AND
PURPOSE.
BUYER'S
HEREIN
ARE
HEWLETT-PACKARD SHALL
DIRECT,
INDIRECT,
DAMAGES,
OR
other
and
Hewlett-Packard
Hewlett-Packard
that
from
its
National
calibration
OTHER LEGAL
ANY
customer
products.
this
product
factory.
the
calibration
Bureau
of
facility,
Standards
assistance
Sales
met
measurements
Standards, to
and
Organization
THE
SOLE
SPECIAL,
WHETHER
and Service
its
published
the
to
are
the
Safety
This
product
Safety
product
be
must
has
been
Requirements.
the
safe,
heeded.
information,
designed
To
ensure
tested
and
safe
cautions,
according
operation
and
warnings
to International
keep
and to
this
in
the
manual
Introduction
This
manual
Oscilloscope
instrument.
Chapter
program
concepts
Chapter
concepts
Chapter
compliance
describes
HP-IB.
Chapter
instrument as
manual.
alphabetic
Chapter
defined
that
are
Chapter
the basic
explains
and
It
1
this
to
2
of
3
the
4
how to
lists
the
is
divided
introduces
instrument
get
you
describes
HP-IB.
describes
with
the
status
the
covers
well as
This chapter
command
5 lists
the
by
IEEE
488.2.
common
6 lists
functions of
to
the
the
program
commands
17
chapters
into
the
to
you
provides
and
started
programming..
the
interface functions
the
operation
IEEE 4882
HP
queries
and
and
programming
some
of
instruments
standard.
reporting features
includes
which
in the
used
a complete
conventions
conventions
also
cross-reference.
Common Commands
These
all
IEEE
Root Level
the
commands
488.2
instruments.
Commands
instrument.
54501A Digitizing
associated
2
appendices.
required
syntax
programming
basic
and
some
that
chapter
This
are
are
used
available
to
program
that
remainder
command tree
which
control
which
the
are
some
control
this
with
general
operate
also
over
the
this
of
commands
functions
many
to
in
the
and
of
HP
54501A
Programming
Chapter
some
Chapter
parameters
Chapter
nulls
7 lists
basic
functions of the
lists
8
for
9 lists
(channel-to-channel
the
System
the
Acquire
acquiring
the
Calibrate
Subsystem
oscilloscope.
Subsystem
storing
and
Subsystem
skew).
Commands
Commands
data.
Commands
which
control
set
the
which
which set
Introduction-1
time
Chapter
all
Y-axis
Chapter
how
waveforms,
displayed
lists
10
the
oscilloscope
11
lists
the
voltage
and written
Channel
functions.
Display
and
the
on
Subsystem
Subsystem
time
markers,
screen.
Commands
Commands
graticule,
which
which
and
control
control
text
are
Chapter
the
Chapter
control
Chapter
the
Chapter
control
Chapter
the
Chapter
provide
channels and
memories.
Appendix
calculated
Appendix
from
12 lists
waveform
13
the
14
automatic
15 lists
all
X-axis
16
trigger
modes
17
access
A
and
B
the
HP
the
Function
functions of
math
lists
the
Hardcopy Subsystem
parameters
lists
the
Measure
measurements
the
Timebase
oscilloscope
lists
the
Trigger
and
lists
the
Waveform Subsystem Commands
to
waveform data,
functions
provides
contains
offers
details
some
example
54501A.
Subsystem
the
during
used
Subsystem
be
to
Subsystem
functions.
Subsystem
parameters
well
as
as
how automatic
on
tips
on
programs
Commands
oscilloscope.
printing
the
Commands
made.
Commands
Commands
each
for
including
static
data
how to
improve
using
Commands
of
waveforms.
trigger
active
from
which
mode.
data
waveform
measurements
results.
the
command
which
which
which
which
which
from
control
select
control
are
set
Introduction-2
the end of
At
commands
returned
for
easy reference
the
manual
queries
and
formats. Also,
of
commands
is
Quick
with their
the
at
end
Reference
corresponding
the
of
manual
functions.
and
Guide
arguments
is
lists
that
a
complete
Programming
the
and
HP
index
54501A
Contents
Introduction
Chapter
1:
Introduction
Introduction
Programming
Talking
Addressing Program
Separator
Command
Query
Program
Program Program
Selecting
Summary
Programming an
Initialization.............................................
Autoscale Setting
Receiving Response Header
Response
String
Numeric
Definite-Length
Multiple
Instrument Digitize
to
Programming
................................................
Syntax
the
to
Message
.........................................
Instrument
the
Instrument
Syntax
...................................
................................................
Syntax
Command
Header Data
Message
Multiple
...............................................
...............................................
the
Up
Information
Data Formats
Variables
Variables
Queries.........................................
Command
.........................................
.........................................
Options
............................................
Terminator
Subsystems
Oscilloscope
Instrument
from
Options
..................................
.........................................
.......................................
Block
Response
Status
........................................
.......................................
Oscilloscope
an
..................................
.................................
..................................
..............................
.............................
................................
.................................
the
Instrument
..................
................................
Data
......................
1-1
1-2
1-2
1-3
1-4
1-5
1-5
1-7 1-8 1-8 1-9
1-10 1-10
1-11
1-11
1-12
1-12
1-13
1-14
1-15
1-16
1-17
1-18 1-19
1-19 1-20
HP
54501A
Programming
Contents-1
Chapter
Chapter
2:
3:
Interface
Introduction
Interface
Command
Addressing
Remote,
Bus
Device
Group
Interface
Status
I——————————————————————————————————————
Message
Protocols
Functional
Protocol
Protocol
Protocol
Syntax
Syntax
Device
Device
Common
Status
Bit
Key
Serial
Parallel
Polling
Configuring Conducting
Disabling
HP-IB Commands
Functions
................................................
Capabilities
and
Data
.................................................2-1
and
Local
Commands
Clear
Execute
Clear
Annunciators
Communication
...................................................3-1
Elements
Overview
Operation........................................
Exceptions
Diagrams
........................................
Concepts
.................................2-1
Lockout
Local
.............................2-2
.............................................
.............................................2-3
Trigger
(IFC)
(GET)
..............................2-3
......................................2-3
.........................................2-3
and
System Functions
......................................
........................................
.......................................3-3
............................................
Overview.............................................
Listening
Talking
Commands........................................
Reporting
Definitions
Features
Poll...............................................3-32
Poll
HP-IB
Syntax
Syntax
....................................3-8
....................................3-21
...........................................3-28
...........................................3-30
............................................
.............................................3-34
Devices.
Parallel
a
Parallel
Parallel
...................................3-36
Poll
Responses
Poll.................................3-37
Responses
Poll
........................
..........................3-37
.......................................3-37
2-1
2-1
2-3
3-1
3-2
3-2
3-5 3-5
3-27
3-31
3-36
Contents-2
HP
54501A
Programming
Chapter
Chapter
4:
5:
Programming
Introduction
Truncation
The
Command
Command
Traversal
Tree
Examples
Infinity Sequential
Response
Notation Conventions and Definitions
Syntax Diagrams
Command
Program
Command
I————————————————————————————————————————
Common Commands
*CLS
*ESE
*ESR
Representation
Common
Root
Subsystem
......................................................5-4
......................................................5-5
......................................................5-7
*IDN
......................................................5-9
*IST
and
Documentation
................................................
Rules
............................................
Tree
Types
.........................................4-4
..........................................4-4
Rules
......................................4-5
................................................
Overlapped
and
Generation
Structure
Commands
Level
Commands
Commands
Examples
Set
Organization
.......................................4-6
Commands.
........................................4-7
............................................4-8
.........................................
......................................
....................................
.....................................
.........................................4-11
..................................4-12
Conventions
4-1
4-1
4-5
4-7
........................
4-7
..........................
4-9 4-9
4-9
4-9
......................................................5-10
*LRN.....................................................5-11
*OPC.....................................................5-12
*OPT
.....................................................5-13
*PRE
.....................................................5-14
*RCL.....................................................5-15
*RST
.....................................................5-16
*SAV
.....................................................5-18
*SRE
.....................................................5-19
*STB
.....................................................5-21
*TRG
*TST
....................................................5-23
.....................................................5-24
*WAI.....................................................5-25
HP
54501A
Programming
Contents-3
Chapter
Chapter
6:
7:
Root
Level
Commands
Introduction
AUToscale
BEEPer
BLANk
DIGitize
EOI
.......................................................6-8
ERASe
................................................6-1
.................................................6-4
....................................................6-5
....................................................6-6
...................................................6-7
....................................................6-9
LER......................................................6-10
LTER MENU
MERGe
PRINt
RUN
SERial
STOP
STORe
TER
VIEW
I————————————————————————————————————————
System Subsystem
Introduction
DSP
....................................................6-11
...................................................6-12
..................................................6-13
....................................................6-14
.....................................................6-15
...................................................
.....................................................6-17
..................................................
.6-16
.6-18
......................................................6-19
....................................................6-20
................................................7-1
.......................................................7-3
ERRor.....................................................7-4
HEADer
...................................................7-6
KEY.......................................................7-7
LONGform.................................................7-9
SETup
....................................................7-10
Contents-4
HP
54501A
Programming
Chapter
Chapter
Chapter
Chapter
8:
9:
10:
11:
Acquire
Introduction
(Normal)
Averaging Envelope
Subsystem
................................................8-1
Persistence Mode
Mode
Mode
............................................8-2
...................................8-1
.............................................8-2
COMPlete..................................................8-4
COUNt
POINts
TYPE
....................................................8-5
....................................................8-6
.....................................................8-7
I——————————————————————————————————————
Calibrate
Introduction
Subsystem
................................................9-1
TNUL1.....................................................9-2
I——————————————————————————————————————
Channel
Introduction
COUPling
ECL
HFReject
OFFSet
PROBe
RANGe
TTL
Subsystem
...............................................
................................................
......................................................10-4
10-1
.10-3
10-5
.................................................
...................................................10-6
...................................................
..................................................
10-7
.10-8
10-9
......................................................
I————————————————————————————————————————
Display
Introduction
COLumn
CONNect
DATA
FORMat
GRATicule
INVerse..................................................
LINE
MASK
PERSistence
Subsystem
...............................................
..................................................
.................................................
...................................................
..................................................11-8
................................................
....................................................11-11
...................................................
11-1
11-4
11-5
.11-6
11-9
11-10
11-12 11-14
..............................................
HP
54501A
Programming
Contents-5
Chapter
Chapter
Chapter
Contents-6
12:
13:
14:
ROW
....................................................11-15
SCReen
SOURce
STRing
TEXT
TMARker VMARker
I————————————————————————————————————————
Function Subsystem
Introduction
ADD
INVert
..................................................
................................................
..................................................11-18
...................................................
................................................
.'...............................................
...............................................
.....................................................
...................................................
MULTiply................................................
OFFSet
ONLY
RANGe
SUBTract
VERSUS
...................................................12-7
....................................................
..................................................
................................................
11-16
.11-17
11-19
11-20
11-21
12-1
12-4
.12-5
.12-6
12-8
.12-9
12-10
12-11
.................................................
I——————————————————————————————————————
Hardcopy
Introduction
LENGth
PAGE
I————————————————————————————————————————
Measure
Introduction Measurement
User-Defined
Measurement
Making
ALL
COMPare
CURSor
DEFine
DELay...................................................
DESTination
DUTycycle
ESTArt
Subsystem
...............................................
.................................................
....................................................13-3
Subsystem
...............................................
Setup
........................................
Measurements.................................
Error.........................................
Measurements
......................................
.....................................................
................................................
................................................
.14-14
..................................................14-15
............................................
..............................................
.14-18
.14-19
.14-20
13-1
.13-2
14-1 14-1 14-1 14-2
14-2
14-11 14-12
14-17
.................................................
HP
54501A
Programming
ESTOp
.................................................
FALLtime................................................14-24
FREQuency
LIMittest................................................
LOWer
MODE
NWIDth
OVERshoot
PERiod
POSTfailure
PRECision
..............................................
.................................................
.................................................
.................................................14-29
.............................................
..................................................14-31
..............................................14-32
..............................................
PREShoot...............................................
PWIDth..................................................14-35
RESults
RISetime
SCRatch
SOURce
STATistics
.................................................
.................................................
.................................................14-38
................................................
...............................................14-40
TDELta..................................................
TMAX...................................................
TMIN
TSTArt TSTOp
TVOLt
UNITs
UPPer VAMPlitude
...................................................14-43
..................................................14-44
..................................................14-45
..................................................14-46
...................................................14-48
..................................................
.............................................
VAVerage...............................................
VBASe
VDELta
VFIFty
VMAX
VMIN
VPP
VRELative
VRMS
VSTArt
VSTOp
VTIMe
VTOP
.................................................
................................................
...................................................
.................................................
...................................................14-56
.....................................................14-57
...............................................
...................................................14-60
.................................................
.................................................
..................................................14-63
...................................................14-64
.14-22
14-25
.14-26
.14-27
.14-28
.14-30
.14-33 .14-34
.14-36
14-37
.14-39
14-41
14-42
.14-49
.14-50 .14-51
.14-52 .14-53
14-54
.14-55
14-58
.14-61
.14-62
HP
54501A
Programming
Corrtents-7
Chapter
Chapter
15:
16:
Timebase
Introduction
Subsystem
15-1
...............................................
DELay....................................................15-3
MODE
RANGe
REFerence
WINDOW
...................................................
...................................................
................................................
..................................................
WINDowDELay...........................................
WINDowRANGe
15-4 15-5
15-6 15-7
15-8 15-9
..........................................
I——————————————————————————————————————
Trigger Subsystem
Introduction
The
EDGE
The
Pattern
The
State Trigger
Trigger
Delay
The
TV
Trigger
The
CONDition
...............................................
Trigger
Trigger
Mode
Mode
Mode
Mode
Mode
...................................
...................................
.....................................
....................................
......................................
16-1 16-3 16-4
16-5
16-6 16-7
16-13
...............................................
DELay...................................................16-16
DELaySLOPe DELay:SOURce
FIELd
HOLDoff
LEVel
LINE
LOGic
MODE
Occurrence
OCCurrence:SLOPe OCCurrence:SOURce
PATH
POLarity
...................................................16-19
...................................................
....................................................16-22
...................................................
...................................................16-28
...........................................
.........................................
...............................................
.................................................
..............................................
......................................
.....................................
................................................
QUALify................................................
SLOPe
SOURce
STANdard
..................................................
................................................
..............................................
.16-17
.16-18
.16-20
16-21
16-23
.16-24
16-25
.16-26
16-27
.16-29 .16-30 .16-32
.16-33
.16-34
Contents-8
HP
54501A
Programming
Chapter
17:
Waveform
Introduction
Data
Normal
Average Envelope
Data Conversion
Conversion
Conversion
Data Format
WORD
BYTE
COMPRESSED
ASCII
COUNt
DATA
FORMat
POINts
PREamble
SOURce
TYPE
XINCrement
XORigin
XREFerence
YINCrement.............................................
YORigin
YREFerence
Subsystem
Acquisition
...............................................
Types
.....................................
.................................................
................................................
...............................................
from Data
from
for HP-IB
Format
Format
Format
...........................................
Value to Value
Data
Transfer
.........................................
...........................................
Format
...........................................
Voltage
Time
to
.....................
.......................
.............................
..................................
...................................................
...................................................17-10
.................................................
..................................................17-13
..............................................
................................................
...................................................17-17
.............................................
................................................
.............................................
................................................
............................................
17-1
17-2
17-2
17-3
17-3
17-4
17-4 17-4
17-5
.17-5
17-6
17-6
17-6
17-9
17-12
.17-14
.17-16
.17-18
.17-19
17-20
.17-21 .17-22
.17-23
HP
54501A
Programming
Contents-9
Appendix
Appendix
A:
B:
Algorithms
Introduction
Measurement
Making
Automatic
Edge
Definition
Algorithm
delay
+
width
-
width
Period Frequency
Duty
Risetime
Falltime
Vmax
Vmin
Vp-p
Vtop
Vbase
Vamp
Vavg
Vrms
I————————————————————————————————————————
Example Programs
Introduction
Vertical Channel
Timebase
Measurement
Digitize
Hardcopy
Waveform
...............................................
Setup
Measurements
Top-Base
Definitions
........................................
......................................
........................................
............................................
.......................................
...................................................A-3
................................................A-4
.................................................A-5
..................................................A-5
..............................................A-5
Cycle
..............................................A-5
................................................
................................................
..................................................A-5
...................................................A-5
...................................................
...................................................A-5
..................................................A-6
..................................................A-6
...................................................A-6
...................................................
...............................................
Program
Setup
Program
Program
Template
Setup Program
.........................................
Program
...........................................
(Service
Program
..............................
................................
using
Request
OPC)
..............
...............................
A-l
A-l
A-l
A-2 A-2 A-3
A-5 A-5
A-5
A-6
B-l
B-2
B-4
B-6
B-9
B-ll
B-12
Contents-10
Quick
Index
Reference
Guide
HP
54501A
Programming
Introduction
Introduction
to
Programming
chapter
This
communication
programming.
chapters
introduces
5
through
and
The
you to
provides
exact
17.
an
basic
the
information
mnemonics
Oscilloscope
concepts
and
the
for
ofHP-IB
examples
commands
to
are
get
listed
you
1
started
in
There
oscilloscope
Other
these
four
are
Set
1.
Retrieve setup information
2.
Digitize
3.
Send
4.
more
basic
four
This chapter
retrieve
setup information
waveform,
into
syntax,
oscilloscope.
on
sections.
two
and
sending
The programming
HP
Basic
operations
basic
via
HP-IB.
the
instrument
up
a
waveform
measurement
complicated
functions.
mainly
deals
how
and
to
pass
The
the
second
to
Refer
measurement
for
4.0
an
that
can:
You
and start
and
and
pass
data
tasks
with
and
first
section
the
chapter "Measure
data to
the
to
accomplished
are
how
measurement
the
to
data
section
(page
(page
the
Note
examples
HP
9000
in
Series
be
done
can
measurements
measurement
the
data
instrument
the
set
to
up
results,
controller.
1-2)
1-11)
discusses
Subsystem"
instrument.
this
manual
2001300
a
with
controller
results
the
to
controller
a
with
combination of
instrument,
how to
chapter
The
concentrates on
programming
for information
in
written
are
Controller.
to
how
digitize
is
divided
program
and
a
an
an
HP
54501A
Programming
Introduction
to
Programming
Oscilloscope
an
1-1
Programming
Syntax
Talking
Instrument
to
the
general,
In
instrument
statements
language.
HP
54501A,
character program.
language
messages
response
Messages
device address
and
The
OUTPUT
<
device address
computers
by passing
provided
Hence,
strings
For
systems
to
messages
are
address,
ensures
instrument.
following
<
device address
programmed.
The
programming
HP
Basic
acting
messages
in
the HPSL
described in
imbedded
example, the
the OUTPUT
use
HP 54501A,
the
from
placed
on
program
the
that
command
>
represents
for
4.0
an
as
controllers
a
over
the
instruction set
1.0 messages
this
manual,
inside
HP
and
the
HP
the
bus
message,
program
the
turns
>
;":SYSTEM:HEADER
the
9000
Series
statement
the
ENTER
54501A.
using
and
message
command
will
I/O
an output
the address
Note
examples
HP
9000
in this
Series
communicate
remote
interface
of
the controller's
programming
for
normally
statements
200/300
for
statement
command
terminator.
is
sent
headers
ON"
the device
of
manual
are
200/300
with
using
appear
of
your
BASIC
sending
for
Passing
the
to
correct
on:
<
terminator
being
written
Controller.
the
the
host
the
ASCII
as
controller's
PASCAL
and
program
receiving
passing
and
device
the
interface
>
in
I/O
the
Introduction to
1-2
Programming an
Oscilloscope
HP
54501A
Programming
The
actual
dependent
using.
are
OUTPUT
the
controller
on
Note
command
and
use when
you
programming language
the
programming
is
you
AddreSSiDQ
Instrument
the Since
cazd,
only
not
address.
Interface
unique
commands typically
Instrument
bus
The device address
only
code.
Angular
characters
command.
Information
message
(NL
orEOI)
the
across
HP
For
the
in
actual < terminator
These
controllers
internally
HP-IB can
the
device address
the
correct
Select
interface
and
"7'
for HP-IB
Address
have
must
the
correct
brackets
that
9000
that
that
is
is
bus.
Series
"<
symbolize
is
displayed
sent
across
only
the
200/300
automatically
the
when
address
return
multiple
passed
interface
(Selects
Code
select
code.
communications
controllers.
(Selects
a
unique
instrument
passed
instrument
this
in
>,"
a
program
in quotes
the
additional
controllers,
>
at
is
key
devices
with
select
Interface).
This
code
to the
Instrument).
the
with
address,
manual,
code
The
bus.
information
the
end
terminate
pressed.
the
program
but
code,
is
proper
address
program
but
also
enclose words
parameter
represents
message
it is
not necessary
the
of
program
the
program
through
Each
used
the
message
the
also
interface card
by
the
interface.
Each
instrument
between
message
the
correct
or
the
actual
terminator
is
that
also sent
message.
message
same
must
correct
controller
The
decimal
must
interface
or
a
bus
type
to
interface
include
instrument
has
to
default
on an
0
and
include
select
a
direct
is
HP-IB
30.
not
HP
54501A
Programming
DEVICE
ADDRESS
=
(Interface
Introduction to
Select Code
+
100)
(Instrument
Programming
Address)
Oscilloscope
an
1-3
For
example,
if
the
interface select code routine
performs
its
instrument
is
7,
when
function
address
the
the
on
for
the
program
instrument
54501A
HP
message
at device
4
is
is
passed, the
address
and
the
704.
Program
DATA
Message
Syntax
T
COMMAND
E
ADDRESS
ONAL)
—————————————————————————————————
AM
MNEMONICS
ATOR
—————————————————————————————————————————————————
the HP
For
factory.
54501A, the
This
address
instrument
be
can
changed
menu.
The
program
device
at
To
program
the
of
command format
instrument
composed
of
representing
is
query
separators, instrument
messages.
composed
For
address
the
instrument
is
remotely
sequences
a
program
headers,
the
over
example:
examples
707.
programmed
a
of
program data,
system interface
OUTPUT
——————————————————
—————————————————————————
——————————————————————————————
this
in
over
and
structure
of
program
command
sequence
XXX;":SYSTEM:HEADER
address
in
Note
manual
bus,
the
expected
with
message
or
query.
of
functional
and
as
is
typically
the
HP-IB
menu
assume
you
the HP
must have
by
the
program messages.
units, with
A
program
elements
terminators.
a
sequence
PROGRAM
These
of ASCII
MESSAGE
"7"
set to
Utility
the
of
54501A is
understanding
an
instrument.
These
each unit
command
that
include
sent
are
data
UNIT
ON"
at
the
The
are
or
to
the
Introduction
1-4
to
Programming
Oscilloscope
an
HP
54501A
Programming
Separator
The
which
data.
<
separator
is
required to
>
shown
separate
in the
the
program
program
message
mnemonic
refers
from
to
a
the
blank
space
program
Command
Syntax
A
command
terminator.
operation
headers
Simple
mnemonic.
command
<
program
When
(for
example,
<
program
Compound
combination of
selects
subsystem.
that
mnemonic
within
is
composed
The
header
performed
be
to
discussed
are
Command
AUTOSCALE
headers
mnemonic
program
data
:DIGITIZE
mnemonic
Command
two
the subsystem,
Additional
the
and
subsystem
the
compound message
single
To
execute
a
a
in the
Header.
typically
> <
terminator
must
>
<
separator
Header.
of
header,
is
the
mnemonic
by
the
instrument.
following
Simple
and
DIGITIZE
in
used
>
included with the
be
CHAN1),
>
<
program
Compound command
associated
any
or
paragraphs.
command
this
instrument.
a
separator
data
mnemonics
are
> <
or more program mnemonics.
last
the
and
function
that
must
separated
are
function
mnemonic
mnemonics
mnemonic
be
transversed.
by
colons.
a subsystem,
within
appear
when there
and
data,
that
represent
The different types
headers
selects the
For
examples
The
simple
is
added.
terminator
The first
between
are
The
mnemonics
example:
the
use
command
contain
simple
of
syntax
The
>
headers
mnemonic
function
subsystem
the
additional levels
following:
a
of
single
a
is:
header
syntax
are
within
within
the
is:
a
the
HP
54501A
Programming
: <
subsystem
(For
To
transverse
that
<
:
subsystem
data>
>:
example
subsystem:
>:
<
terminator
(For example
<
function
> <
separator
> <
program
:SYSTEM:LONGFORM ON)
<
function
subsystem
a
<
>
to execute
separator
down
<
subsystem
>
a
level of
>:
:TRIGGER:DELAY:SOURCE
Introduction
to
Programming
>
data
> <
CHAN1)
<
terminator
subsystem
a
program
>
within
Oscilloscope
an
1-5
To execute
semi-colon
more
is
used
than
to
function
one
separate
within the
the functions:
same
subsystem
a
<
:
subsystem
<
terminator
example
(For
<
function
>:
>
:SYSTEM:LONGFORM
Identical function
example,
For
vertical
range
the
or
to
:CHANNEL1:RANGE
-
the
sets
vertical
:TIMEBASE:RANGE
-
the horizontal
sets
CHANNELl
which
Common
functions
488.2
syntax
-
<
command
and TIMEBASE
is
range
being
Command Header. Common
within the
is:
> <
header
> <
separator
mnemonics can
function
range
change
.4
of
1
timebase
mnemonic
the horizontal
channel
to
modified.
instrument
terminator
>
>
<
be
1
1
second
subsystem
are
<
data
>;
function
ON;HEADER
used for
more
RANGE
range:
volts
to
0.4
full
scale.
selectors
command
(such
as
clear
may
full
> <
separator
ON)
than
be
used
scale.
and
headers
status,
subsystem.
one
change
to
determine
control
etc.).
>
<data
Their
>
the
IEEE
Introduction
1-6
No
header.
to Programming
space or
*CLS
Oscilloscope
an
separator
is
example
an
is
allowed
of
a
between
common
the asterisk
and
command header.
the
command
HP
54501A
Programming
Query
Command Command
queries.
requested
remains
When
listener
the
statement:
After
in
read,
(typically
current
headers
immediately
receiving
function and
the
output queue
the
answer
a
controller).
timebase
setting
a
query,
places
the
until
is
transmitted
in
the
followed
the
instrument
answer
it
is
read
across
The
query
output
by a
in
or
its
the
question
interrogates
output
another
bus
to
(?)
mark
the
queue.
The
command
designated
the
:TIMEBASE:RANGE?
The
queue.
controller
are
answer
is
issued.
places
input
<
ENTER
passes
variable
device
the
value
Range.
address
across
Query commands
configured. the
instrument,
example, instrument
in
the
the
output
The
output
is
sent.
They
with
command
to
measure
queue.
queue must
example,
For
:MEASURE:RISETIME?
query
cause
statement
and
another
the
be
to
program
the
Sending
will
response
queue.
>
;Range
bus
used
are
also used
are
the
the
query
the
to
controller
find
out how
to
get
results of
to
actually activating
and
the
instrument
measurements
the
:MEASURE:RISETIME? instructs the
the
ENTER
place
command
output
lost.
risetime of
be
when
the
result
buffer
This
will
your waveform
Note
the
before
read
the
send
you
you
Value
must
in
a
follow
jisetime
variable
before reading
be
to
cleared
also
generate
next
query
that
to read
(Value
the result
the
and
error
an
it
places
in
is
currently
measurement.
place
and
query
the
message
with
result
pro/yam
jisetime).
of
the
current
in
the
the
made
the
the
query
error
by
For
result
of
HP
54501A
Programming
Introduction
to Programming
Oscilloscope
an
1-7
Program
Header
Options
Program
lowercase
returned
headers
ASCII
in
uppercase.
be
sent
can
characters.
using
any
Instrument
combination
responses,
of
uppercase
however, are
or
always
Program
Data
Both
program
command
longform (complete
longform
combination
the
turn
of
headers
on.
:SY?TEM:HEADERON
-
:SYCT:HEAD
Programs
self-documenting.
controller
I/O
of
Program
information
separate
<
program
When
comma
ON
shortform
written in
memory
activity.
rules
data
for
is
used
The
"Programming
related to
the
command
mnemonic
a
program
separates
mnemonic
The
needed for
shortform
> <
sequential
and
query
spelling),
-longform
longform
shortform
and
shortform.
are
shortform syntax
program
syntax
and
Documentation
to convey
the
header
separator
a
command
or query
>
<data>
or query
program
headers
easily
Note
are
variety
header.
has
data.
may
(abbreviated
Either
of
and
read
conserves
storage
shown
and
the
in
Conventions."
types
of
least
At
header from
<
terminator
multiple
be
sent
spelling),
following
the
almost
are
the
amount
reduces
chapter
of
parameter
one
the
>
data
in
either
or
examples
of
the
amount
space must
program
parameters
any
data.
a
Introduction
1-8
to
Programming
<
For
program
example,
mnemonic
parameters:
Oscilloscope
an
> <
separator
> <
:TRIGGER:DELAY
TIME
and 1.23E-01.
<
data
>,
data
TIME,1.23E-01
<
>
terminator
has
>
data
two
HP
Programming
54501
A
Character
parameter
the
timebase
character
SINGLE.
single.
Program
information
command
program
data
Data.
as
MODE
in
Character
alpha
this
:TIMEBASE:MODE
program
alphanumeric strings.
or
be
set
may
to
be
AUTO,
sets the
auto,
can
case
SINGLE
is
data
trigger,
TRIGGER,
timebase
used to
For
or
convey
example,
single.
or
mode to
The
Program
Terminator
Message
Numeric
to
full
integers,
the
The
message terminator
(New
combination
encodings
Communication
control
an
Program Data.
a
be
number.
scale
chapter
program
Line)
line
to
range
real
numbers,
"Message
codes
character, an
the
of
the
for
low
ASCII linefeed
The
NL
(New
(End Of String)
EOS
For
be
program
and
on
Some
example,
expressed
scientific
and
Communication
within a
is
data
received.
EOI
All
two.
System
the last
(decimal
Line)
three
terminators
Functions."
byte
10).
terminator
and
command
headers
require
:TIMEBASE:RANGE
numerically.
notation. For
message are
The
terminator
(End-Or-Identify)
ways are
the
of
System
and
equivalent
listed in
Asserting
data
message.
The
instrument
Functions."
executed
may
asserted,
the
the
more
chapter
Note
same
Text)
function
terminator.
EOT
the
has
(End Of
program
requires
information
after
either
be
or
with
the
EOI sets
The
NL
as
the
desired
recognizes
the
program
NL
an
a
exact
"Message
the
character
an
data
see
EOI
is
54501
A
HP
Programming
Introduction
to
Programming
Oscilloscope
an
1-9
Selecting
Subsystems
Multiple
You can
send
different
semicolon.
subsystem.
multiple
subsystems
The
colon
example:
For
program
the
on
following
commands
same
the
and
by separating
line
semicolon enables
program
each
you
queries
for
command
to
enter
with
a
new
a
Summary
T
COMMAND
E
ADDRESS
AM
ATOR
DATA
<
program mnemonic
:CHANNEL1:RANGE
> <
0.4;:TIMEBASE
data
>;:
<
program mnemonic
RANGE
1
> <
Note
The
the
Multiple
simple
following
bus.
commands
commands.
illustration
OUTPUT
————————————————————
—————————————————————————
MNEMONICS
——————————————————————————————————————————————————
——————————————————————————————————————————
be
any
may
summarizes
XXX;
combination
the
syntax for
PROGRAM
"
.-SYSTEM:
MESSAGE
<
>
data
of
compound
terminator
programming
UNIT
HEADER ON"
>
and
over
Introduction
1-10
to
Programming
Oscilloscope
an
HP
54501A
Programming
Programming
Oscilloscope
an
Initialization
make
To
begin
every program
CLEAR
initialize
Then
OUTPUT
The
are
Refer
reference
sure
!
707
initializes
707;"*RST"
actual
discussed
to
the bus
the interface of
the
instrument to
!
initializes the
commands
in the
controller
your
manual
all appropriate
and
with
initialization
an
and
chapter
manual
information
for
the
instrument.
a
preset state.
instrument to
Note
syntax
for
"Common
and
on
interfaces
are
statement.
example:
For
a
preset
state.
initializing
Commands."
programming
initializing
the
in
example:
For
the
instrument
language
interface.
a
known state,
HP
54501A
Programming
Introduction
to
Programming
Oscilloscope
an
1-11
Autoscale
The AUTOSCALE
performs
vertical
a
very
channel,
useful
timebase,
feature
function
of Hewlett-Packard
and
unknown
on
trigger
level
waveforms
of
digitizing
the
instrument.
oscilloscopes
setting
by
up
the
Setting
the
Instrument
The
:AUTOSCALE
A
Up
typical oscilloscope
voltage,
trigger level,
oscilloscope
:CHANNEL1:RANGE
:TIMEBASE:RANGE
:TRIGGER:LEVEL
This
at
0.25
timebase
trigger
syntax for
the
horizontal
are:
example
The
V.
mode
at
0.25
Autoscale
<
terminator
>
setup
range,
A
slope.
and
0.64;OPPSET
1E-6;DELAY
0.25;SLOPE
the
sets
vertical
horizontal time
is
volts
set
on
triggered,
to
positive
a
is:
the
set
time,
<
terminator
<
terminator
volts
full-scale
ms
the
vertical
delay
of
full-scale
trigger
would
delay
example
typical
0.25
20E-9;MODE TRIGGERED
POSITIVE
0.64
to
1
is
and
slope.
range
reference,
the
commands
>
>
(80
20
with
circuit
offset
and
trigger
sent to
<
terminator
mV/div)
delay.
ns
is
programmed
mode,
the
>
centered
The
to
Introduction to Programming
1-12
Oscilloscope
an
HP 54501A
Programming
Loading...
+ 356 hidden pages