HP 54501A Programming Reference Manual page 322

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

Advertisement

DATA
Returned Format:
[:WAVeform:DATA]
<binary
block
length
bytes>
<
binary
block
>
<NL>
The following program
moves data
from the
HP
54501A
to the controller
and then back to the
HP
54501A
with the
:WAVEFORM:DATA
query
and
command.
Example:
10
CLEAR 707
20
!
SET UP ACQUIRE
SUBSYSTEM
30 OUTPUT 707;":ACQUIRE:TYPE NORMAL;COUNT
1;
POINTS
512"
40 OUTPUT
707;": DIGITIZE
CHANNEL!"
!
STORE CHAN
1
DISPLAY
TO WMEM1
50 OUTPUT 707;":SYSTEM:HEADER OFF;:EOI
ON"
60 OUTPUT 707;":WAVEFORM:SOURCE CHANNELI ;FORMAT WORD" 'SELECT WAVEFORM
DATA
70
I
SOURCE AND OUTPUT FORMAT
80 OUTPUT 707;":WAVEPORM:DATA?"
90 ENTER
707 USING "#,2A,8D";Headers$,
Bytes
!
READ
LENGTH BYTE
100
Lengths
Bytes
110
Length
=Length/2
120 ALLOCATE INTEGER Waveform (1: Length)
130 ENTER 707 USING "#,W';Waveform (*)
!
ENTER WAVEFORM
DATA
TO
INTEGER ARRAY
140
ENTER 707 USING
°-K,B";End$
!
ENTER TERMINATOR
150DIMPreamble$[200]
160
OUTPUT
707;":WAV:PREAMBLE?"
!
OUTPUT WAVE SOURCE
PREAMBLE
TO
CONTROLLER
170 ENTER 707 USING "-K";Preamble$
!
ENTER PREAMBLE INTO CONTROLLER
180
OUTPUT
707;":WAV:SOURCE
WMEMORY4"
'CHANGE SOURCE TO WMEMORY
4
190 OUTPUT 707 USING
"ilt,K";":WAVEFORM:PREAMBLE ";Preamble$!
SEND PREAMBLE FROM
200
!
CONTROLLER TO WMEMORY
4
210 OUTPUT 707
USING "#,k";":WAVEFORM:DATA
#800001024" ISEND HEADER
220
OUTPUT 707
USING "W";WAVEFORM(*)
!
SEND WAVEFORM
DATA
TO WMEMORY
4
220 OUTPUT
707;": BLANK
CHANNEL1 ;VIEW WMEMORY4"! TURN CHAN
1
OFF-WMEM40N
230 END
Note
In
program
line
190,
the space after
:WAVEFORM:PREAMBLE
and
before
the
quote
mark
is
necessary.
HP 54501A
Programming
Waveform Subsystem
17-11

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents