
25-5
Waveform Commands
FORMat
Example
This example sends 1000 bytes of previously saved data to the instrument from the array, Set.
10 OUTPUT 707 USING "#,K";:WAVEFORM:DATA #800001000"
20 OUTPUT 707 USING "W";Set(*)
N O T E
BASIC Image Specifiers.
#
is an BASIC image specifier that suppresses the automatic output
of the EOL sequence following the last output item.
K
is an BASIC image specifier that outputs
a number or string in standard form with no leading or trailing blanks.
W
is an BASIC image
specifier that outputs 16-bit words with the most significant byte first.
Query
:WAVeform:DATA?
The query outputs waveform data to the computer over the GPIB interface. The data is cop-
ied from a waveform memory, function, channel buffer, or histogram previously specified with
the WAVeform:SOURce command. The returned data is described by the waveform preamble.
N O T E
CGRade as Waveform Source.
If the waveform source is CGRade, then the waveform fromat must be set to
WORD. WORD is the only format that works with color grade data.
Returned Format
[:WAVeform:DATA] <block_data>[,<block_data>]<NL>
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$
53 ENTER 707 USING "#,1D";Header_length
55 ENTER 707 USING "#,"&VAL$(Header_length)&"D";Length
60 Length = Length/2
!Length in words
70 ALLOCATE INTEGER Wdata(1:Length)
80 ENTER 707 USING "#,W";Wdata(*)
90 ENTER 707 USING "-K,B";End$
100 END
N O T E
BASIC Image Specifiers. # is an 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 BASIC
image specifier that places the next character received in a string variable.
1D
is an BASIC
image specifier that places the next character in a numeric variable.
W
is an 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 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 BASIC specifier that enters the next byte in a variable.
The format of the waveform data must match the format previously specified by the WAVe-
form:FORMat, WAVeform:BYTeorder, and WAVeform:PREamble commands.
FORMat
Command
:WAVeform:FORMat {ASCii | BYTE | LONG | WORD}
Содержание 86100A
Страница 18: ...1 14 Introduction Status Reporting Figure 1 4 Status Reporting Data Structures...
Страница 19: ...1 15 Introduction Status Reporting Status Reporting Data Structures continued...
Страница 94: ...2 40 Sample Programs BASIC Programming Examples...
Страница 124: ...4 16 Root Level Commands VIEW...
Страница 125: ...5 DATE 5 2 DSP 5 2 ERRor 5 3 HEADer 5 4 LONGform 5 5 MODE 5 6 SETup 5 7 TIME 5 7 System Commands...
Страница 132: ...5 8 System Commands TIME...
Страница 140: ...6 8 Acquire Commands SWAVeform RESet...
Страница 152: ...7 12 Calibration Commands STATus...
Страница 192: ...11 12 Display Commands SSAVer...
Страница 202: ...12 10 Function Commands VERTical RANGe...
Страница 203: ...13 AREA 13 2 DPRinter 13 2 FACTors 13 3 IMAGe 13 3 PRINters 13 4 Hardcopy Commands...
Страница 316: ...21 12 TDR TDT Commands Rev A 05 00 and Below STIMulus...
Страница 332: ......
Страница 353: ...26 DISPlay 26 2 LOAD 26 2 SAVE 26 3 XOFFset 26 3 XRANge 26 3 YOFFset 26 3 YRANge 26 4 Waveform Memory Commands...