HP 54501A Programming Reference Manual page 326

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

Advertisement

PREamble
Example:
This example program
uses
both the
command
and query
form of
the
PREAMBLE
command. First the preamble
is
queried (output to the
controller). Then the preamble
is
returned to the previously selected
waveform
memory.
10
DIMPre$[120]
20 OUTPUT
707;"SYSTEM:HEADER OFF"
30
OUTPUT 707;"WAVEFORM:
PREAMBLE?"
40 ENTER 707 USING
"-K";Pre$
50 OUTPUT 707 USING "#,K";"WAV:PREAMBLE
";Pre$
60 END
Note
In
line
50
of
the program example,
a
space
is
inserted between
the
word
"PREAMBLE"
and
the
closed quotation mark. This
space
must
be inside the
quotation
mark
because in
this
format
(#,K)
the data
is
packed
together.
Failure to
add
the space
will
produce
a
word that
is
not
a
proper command word.
Example:
The
following program example brings the preamble
in
a
numeric
array.
10
DIMPreamble[1:10]
20 OUTPUT 707;"SYSTEM:HEADER OFF'
30 OUTPUT 707;°WAVEFORM:PREAMBLE?"
40
ENTER
707;
Preamble)*)
50 OUTPUT
707;"WAV: PREAMBLE ";Preamble(*)
60 END
HP 54501A
Programming
Waveform Subsystem
17-15

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents