Agilent Technologies Infiniium 8000A Programmer's Reference Manual page 833

Table of Contents

Advertisement

BASIC Example
This example places the current waveform data from channel 1 of the array
Wdata in the word format.
10
OUTPUT 707;":SYSTEM:HEADER OFF"!Response headers off
20
OUTPUT 707;":WAVEFORM:SOURCE CHANNEL1!Select source
30
OUTPUT 707;":WAVEFORM:FORMAT WORD"!Select word format
40
OUTPUT 707;":WAVEFORM:DATA?"
50
ENTER 707 USING "#,1A";Pound_sign$
60
ENTER 707 USING "#,1D";Header_length
70
ENTER 707 USING "#,"&VAL$(Header_length)&"D";Length
80
Length = Length/2!Length in words
90
ALLOCATE INTEGER Wdata(1:Length)
100 ENTER 707 USING "#,W";Wdata(*)
110 ENTER 707 USING "-K,B";End$
120 END
HP BASIC Image Specifiers
# is an HP BASIC image specifier that terminates the statement when the last ENTER
item is terminated. EOI and line feed are the item terminators.
1A is an HP BASIC image specifier that places the next character received in a string
variable.
1D is an HP BASIC image specifier that places the next character in a numeric
variable.
W is an HP BASIC image specifier that places the data in the array in word format
with the first byte entered as the most significant byte.
-K is an HP BASIC image specifier that places the block data in a string, including
carriage returns and line feeds until EOI is true or when the dimensioned length of
the string is reached.
B is an HP BASIC specifier that enters the next byte in a variable.
The format of the waveform data must match the format previously specified
by the :WAVeform:FORMat, :WAVeform:BYTeorder, and :WAVeform:PREamble
commands.
Waveform Commands
DATA?
30-11

Advertisement

Table of Contents
loading

Table of Contents