Spectrum Analyzer Commands 4-11 :TRACe Subsystem
S412E PM PN: 10580-00319 Rev. N 4-43
:TRACe[:DATA] {1|2|3},(<header><block>)
:TRACe[:DATA]? {1|2|3}
Title: Trace Data Transfer
Description: This command transfers data from the controlling program to the
instrument. The query form transfers trace data from the instrument to
the controller. Data is transferred to the instrument enclosed in
parentheses as (<header><block>) and from the instrument as
<header><block>.
The ASCII header specifies the number of data bytes. It looks like #AX,
where A is the number of digits in X and X is the number of bytes in the
<block>.
The format of the block data in the query form is specified by
:FORMat:DATA. The block data in the command form is always sent in
ASCII format. Data can be transferred to and from the 3 available
display traces. Use the commands in the MMEMory subsystem to store
and recall traces from the instrument memory. The command form does
not support setting all trace points to a single value. To do this, send the
same value to each point. Trace setup information can be acquired using
:TRACe[:DATA]:PREamble?
To acquire the data from trace A in the instrument, send
:TRACe[:DATA]? 1. A 551 point trace is returned as #42204<block
data>. <block> data could be in either INTeger,32 or REAL,32 format.
In both cases, there is 4 bytes per data point. So, 4 bytes per point * 551
data points gives 2204 bytes in <block> data. This example assumes
that :FORMat:DATA INTeger,32 or :FORMat:DATA REAL,32 has been
sent to the instrument before the query command is sent.
The query command will return a #0 if data is invalid for the active
trace.
Parameter: {1|2|3},(<header><block>)
Related Command: :FORMat:DATA
:TRACe[:DATA]:PREamble?