EasyManua.ls Logo

HP 54501A - String Variables

HP 54501A
386 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
String Variables
If
you want
to
observe
the headers
for
queries,
you
must
bring
the
returned
data into
a string
variable.
Reading
queries
into
string
variables
is
simple
and
straightforward, requiring
little
attention
to
formatting.
For
example:
ENTER
<
device
address
>
;Result$
places
the
output
of
the
query
in the
string
variable ResultS.
Note
String
variables
are
case
sensitive
and
must
be
expressed
exactly
the
same
each time
they
are used.
The
output
of
the
instrument
may
be
numeric
or
character
data
depending
on
what
is
queried.
Refer
to the
specific
commands
for
the
formats
and
types
of
data
returned
from
queries.
Note
For
the
example
programs,
assume
that
the
device
being
programmed
is
at
device
address
707.
The
actual
address will
vary
according
to
how
you
have
configured
the bus
for
your
own
application.
The
following
example
shows
the
data
being
returned
to
a string
variable
with
headers
off:
10
DIM
Rang$[30]
20
OUTPUT
707;":SYSTEM:HEADER
OFF"
30
OUTPUT
707;":CHANNEL1:RANGE?"
40
ENTER
707;Rang$
50
PRINT
RangS
60
END
After
running
this
program,
the
controller
displays:
+1.00000E-1
Introduction
to
Programming
an
Oscilloscope
HP
54501A
1-16
Programming

Table of Contents

Other manuals for HP 54501A

Related product manuals