EasyManuals Logo
Home>Agilent Technologies>Test Equipment>86100C

Agilent Technologies 86100C Programmer's Guide

Agilent Technologies 86100C
366 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #343 background imageLoading...
Page #343 background image
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(*)
NOTE 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
NOTE 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}

Other manuals for Agilent Technologies 86100C

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Agilent Technologies 86100C and is the answer not in the manual?

Agilent Technologies 86100C Specifications

General IconGeneral
BrandAgilent Technologies
Model86100C
CategoryTest Equipment
LanguageEnglish

Related product manuals