9 Programming the Instrument
9.3 SCPI Operation and Results Query
9.3.3.2 Send/Query Trace Data (Remote Command Only)
Allows trace data to be sent to the instrument or queried from the instrument. The
response to the query is a list of the amplitude points which comprise the requested
trace in the current Y Axis Unit of the instrument. The X Axis Unit is that of the
destination trace (for send) or the source trace (for query).
See:
–
"Query Trace Data" on page 2758
–
"More Information" on page 2759
Remote
Command
:TRACe[:DATA] TRACE1 | TRACE2 | TRACE3 | TRACE4 | TRACE5 | TRACE6, <data>
Notes The TRACe[:DATA] command is of the form:
:TRACe:DATA <trace>,<data>
where <trace> can be one of the following parameters:
TRACE1, TRACE2, TRACE3, TRACE4, TRACE5, TRACE6
and where <data> can be
- ASCII data, which consists of a string of values separated by comma
or
- REAL or INTeger sent as a definite length block, with a header describing the data to follow
Couplings Sweep points will affect the amount of data
:FORMat:DATA describes the different types of data formats that can be used with trace data
Use :FORMat:BORDer to set the byte order
Query Trace Data
Remote
Command
:TRACe[:DATA]? TRACE1 | TRACE2 | TRACE3 | TRACE4 | TRACE5 | TRACE6
Example Send five points to Trace 1. Assuming that :FORMat:DATA is set to ASCii, Y Axis Unit is set to dBm,
and sweep points is set to 5, this will result in Trace 1 consisting of the five points -1 dBm, -2 dBm, -3
dBm, -4 dBm, and -5 dBm:
:TRAC TRACE1,-1,-2,-3,-4,-5
Query the instrument for the contents of trace 2:
:TRAC? TRACE2
Backwards
Compatibility
Notes
In X-Series, the legacy RAWTRACE,LLINE1,LLINE2 parameters for trace data query are no longer
available
Spectrum Analyzer Mode User's &Programmer's Reference 2758