Spectrum Analyzer Commands :TRACe Subsystem
MS20xxC PM PN: 10580-00306 Rev. E 6-59
Trace Data Transfer
:TRACe[:DATA]
Description: This command transfers data from the controlling program to the
instrument. The query form transfers trace data from the instrument to
the controller. When transferred to the instrument, data is enclosed in
parentheses as (<header><block>), and when transferred from the
instrument, data is formatted as <header><block>.
The ASCII header specifies the number of data bytes. It appears as
#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 by
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, each data point has 4 bytes. So, 4 bytes per point
multiplied by 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 returns a #0 if data is invalid for the active trace.
Syntax: :TRACe[:DATA] {1|2|3},(<header><block>)
:TRACe[:DATA]? {1|2|3}
Cmd Parameter: {1|2|3},(<header><block>)
Query Response: {1|2|3}
Related Command: :FORMat:DATA
:TRACe[:DATA]:PREamble?
Front Panel
Access: NA