Program Examples - HP 54501A Programming Reference Manual

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

Advertisement

Program
Examples
The
program examples given for
each
command in the following chapters
and appendices were written
on an
HP
9000
Series 200/300 controller
using the
HP
BASIC
4.0 programming language.
The programs
always
assume the oscilloscope
is
at address 707.
If
a
printer
is
used,
it
is
always
assumed to be at address 701.
In
these examples, special attention should be
paid
to the ways in which
the
command/query
can be sent.
The
way
the instrument is set
up
to
respond to
a
command/query
has
no bearing on how you send the
command/query. That
is, the
command/query can be
sent
using the
longform or shortfonn
if
one exists
for that command.
You
can send the
command/query using upper case
(capital)
letters or lower
case
(small)
letters, both work the same. Also, the data can be
sent
using almost any
form you
wish.
If
you
were sending
a
channel
1
range value
of
100
mV,
that value could be
sent
using
a
decimal (.1), or an exponential
(le-1
or
l.OE-1),
or
a
suffix
(100 mV
or
100MV).
As
an example,
set
channel
1
range to 100
mV
by
sending one of the
following:
commands in longform and using the
decimal format.
OUTPUT
707;":CHANNEL1:RANGE
.1"
commands in shortfonn and using an exponential format.
OUTPUT
707;":CHAN1:RANG
1E-1"
commands using lower
case letters, shortforms,
and
a
suffix.
OUTPUT
707;":chanl:rang 100
mV
Note
In
these examples, the
colon
as the
first character of
the
command
is
optional. The
space
between
RANGE
and
the
argument
is
required.
HP
54501A
Programming
Programming and Documentation Conventions
4-11

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents