Spectrum Master™ Programming Manual : 3 Remote Commands : Trace Subsystem

Trace Subsystem
This subsystem contains commands related to the transfer of trace data to and from the instrument.
Trace Data Transfer
:TRACe[:DATA] 1|2|3,(<header><block>)
:TRACe[:DATA]? [1]|2|3
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 will be returned as #42204<block data>. <block> data could be in either INTeger,32 or REAL,32 format. In both cases, there will be 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.
 
Trace Header Transfer
:TRACe:PREamble? [1]|2|3
Returns trace header information for the specified trace.
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 response begins with an ASCII header. The header specifies the number of following bytes. It looks like #AX, where A is the number of digits in X and X is the number of bytes that follow the header.
Parameters are returned in comma-delimited ASCII format. Each parameter will be returned as “NAME=VALUE[ UNITS],”
Valid parameter names are:
 
 
 
 
 
 
 
 

Copyright 2011 Anritsu Company
Anritsu Company
1800-ANRITSU
10450-00034, Rev. A
mmdtechpubs@anritsu.com