This subsystem handles active trace data and trace data stored in the analyzer's internal memory.
Command tree: TRACe
Trace data is transferred in either ASCII or block data (REAL) format, depending on the FORMat[:DATA] setting. If the block data format is used, it is recommended to select EOI as receive terminator (SYSTem:COMMunicate:GPIB[:SELF]:RTERminator EOI).
The commands in the TRACe... menu use the following ZVR-compatible parameters to specify traces:
Parameter |
Meaning |
Used in |
CH1DATA, CH2DATA, CH3DATA, CH4DATA |
Active data trace of channels 1 to 4 |
TRACe:COPY |
CH1MEM, CH2MEM, CH3MEM, CH4MEM |
Active memory trace associated to the active data trace CH1DATA, CH2DATA, CH3DATA, CH4DATA, respectively. |
TRACe[:DATA][:RESPonse][:ALL]? |
IMPLied |
Active data trace, addressed with <Chn> |
|
CHMem |
Active memory trace assigned to the IMPlied trace |
|
MDATA1, MDATA2, MDATA3, MDATA4, MDATA5, MDATA6, MDATA7, MDATA8 |
Memory trace named Mem<n>[Trc<m>]. The trace name is unique because <n> counts all data and memory traces in the active setup. |
TRACe:CLEar |
Deletes one of the memory traces Mem<n>[Trc<m>], where n = 1, ... 8.
Parameters |
Identifier for the memory trace; see list of trace names. . |
Range [def. unit] |
MDATA<n> where <n> = 1 to 8. [–] |
*RST value |
–
|
SCPI, Command Types |
Device-specific, no query
|
Example: |
SWE:POIN 20 Create a trace with 20 sweep points, making the created trace the active trace of channel 1 (omitted optional mnemonic SENSe1). TRAC:COPY "Mem_Pt20",CH1DATA Copy the current state of the created trace to a memory trace named "Mem_Pt20". The memory trace is not displayed. DISP:WIND:TRAC2:FEED "MEM_PT20" Display the created memory trace in the active diagram area (diagram area no. 1).
|
Copies a data trace to a memory trace. The trace to be copied can be specified by two alternative methods:
As the active data trace of channels 1 to 4 (CH1DATA, CH2DATA, CH3DATA, CH4DATA). If a mathematical trace is active, the associated data trace is copied.
As a trace with a name (string variable)
The created memory trace can be specified as follows:
As the memory trace named Mem<n>[Trc<m>], where n = 1, ... 8 and Trc<m> is the name of the copied data trace (MDATA1, MDATA2, MDATA3, MDATA4, MDATA5, MDATA6, MDATA7, MDATA8)
As a memory trace with an arbitrary name (string variable)
An existing memory trace with the same name is overwritten.
The copied trace is the data trace which is not modified by any mathematical operations. To copy a mathematical trace to a memory trace, use TRACe:COPY:MATH. To copy the active trace to the memory using an automatic memory trace name, use CALCulate<Chn>:MATH:MEMorize.
<memory_trc> |
Name of the memory trace. |
Range [def. unit] |
<memory_trace> is either a string variable (enclosed in single or double quotes) or one of the following reserved names (no string variables): MDATA1 | MDATA2 | MDATA3 | MDATA4 | MDATA5 | MDATA6 | MDATA7 | MDATA8 (only for memory traces Mem<n>[Trc<m>], where n = 1, ... 8; see list of trace names). [–] |
*RST value |
–
|
<data_trc> |
Name of the data trace |
Range [def. unit] |
<data_trace> is either a string variable (enclosed in single or double quotes) or one of the following reserved names (no string variables): CH1DATA | CH2DATA | CH3DATA | CH4DATA (only for the active data trace in channels Ch1, Ch2, Ch3, Ch4; see list of trace names). [–] |
*RST value |
–
|
SCPI, Command Types |
Confirmed, no query
|
Example: |
*RST; :SWE:POIN 20 Create a trace with 20 sweep points, making the created trace the active trace of channel 1 (omitted optional mnemonic SENSe1). TRAC:COPY "Mem_Pt20",CH1DATA Copy the current state of the created trace to a memory trace named "Mem_Pt20". The memory trace is not displayed. DISP:WIND:TRAC2:FEED "MEM_PT20" Display the created memory trace in the active diagram area (diagram area no. 1).
|
Copies a mathematical trace to a memory trace. The trace to be copied can be specified by two alternative methods:
As the active mathematical trace of channels 1 to 4 (CH1DATA, CH2DATA, CH3DATA, CH4DATA)
As a trace with a name (string variable)
The created memory trace can be specified as follows:
As the memory trace named Mem<n>[Trc<m>], where n = 1, ... 8 and Trc<m> is the name of the copied data trace (MDATA1, MDATA2, MDATA3, MDATA4, MDATA5, MDATA6, MDATA7, MDATA8)
As a memory trace with an arbitrary name (string variable)
An existing memory trace with the same name is overwritten.
To copy a data trace which is not modified by any mathematical operations, use TRACe:COPY.
<memory_trc> |
Name of the memory trace. |
Range [def. unit] |
<memory_trace> is either a string variable (enclosed in single or double quotes) or one of the following reserved names (no string variables): MDATA1 | MDATA2 | MDATA3 | MDATA4 | MDATA5 | MDATA6 | MDATA7 | MDATA8 (only for memory traces Mem<n>[Trc<m>], where n = 1, ... 8; see list of trace names). [–] |
*RST value |
–
|
<data_trc> |
Name of the data trace |
Range [def. unit] |
<data_trace> is either a string variable (enclosed in single or double quotes) or one of the following reserved names (no string variables): CH1DATA | CH2DATA | CH3DATA | CH4DATA (only for the active data trace in channels Ch1, Ch2, Ch3, Ch4; see list of trace names). [–] |
*RST value |
–
|
SCPI, Command Types |
Confirmed, no query
|
Example: |
*RST; :SWE:POIN 20 Create a trace with 20 sweep points, making the created trace the active trace of channel 1 (omitted optional mnemonic SENSe1). CALC:MATH:SDEF 'Trc1 / 2'; :CALC:MATH:STAT ON Define a mathematical trace, dividing the data trace by 2. Activate the mathematical mode and display the mathematical trace instead of the data trace. TRAC:COPY:MATH 'Mem_Pt20',CH1DATA; :CALC:MATH:STAT OFF Copy the current state of the mathematical trace to a memory trace named "Mem_Pt20". The memory trace is not displayed. Switch the display back to the data trace. DISP:WIND:TRAC2:FEED 'MEM_PT20' Display the created memory trace together with the data trace.
|
Returns the response values of the active data trace or memory trace (see trace names).
To read the response values of an arbitrary data or memory trace, use CALCulate<Chn>:DATA? To read the response values of a trace acquired in single sweep mode (INITiate<Ch>:CONTinuous OFF), use CALCulate<Chn>:DATA:NSWeep:FIRSt?
<Response> |
Response data of the selected trace, see list of trace names. |
Range [def. unit] |
The data is transferred in the data format defined via FORMat[:DATA] and FORMat:DEXPort:SOURce. The unit is the default unit of the measured parameter; see CALCulate<Ch>:PARameter:SDEFine. |
*RST value |
–
|
SCPI, Command Types |
Device-specific, query only
|
Example: |
SWE:POIN 20 Create a trace with 20 sweep points, making the created trace the active trace of channel 1 (omitted optional mnemonic SENSe1). CALC:FORM MLIN; :FORM ASCII; FORM:DEXP:SOUR FDAT Select the trace data format: linear magnitude values, ASCII format and formatted trace data (1 value per sweep point). TRAC? CH1DATA Query the 20 response values of the created trace according to the previous format settings.
|
Returns the stimulus values of the active data trace or memory trace (see trace names).
To read the stimulus values of an arbitrary data or memory trace, use CALCulate<Chn>:DATA:STIMulus?
<Response> |
Response data of the selected trace, see list of trace names. |
Range [def. unit] |
The data is transferred in the data format defined via FORMat[:DATA]. The numeric values are expressed in the default unit of the stimulus variable. [Hz, dBm or s, depending on the sweep type] |
*RST value |
–
|
SCPI, Command Types |
Device-specific, query only
|
Example: |
SWE:POIN 20 Create a trace with 20 sweep points, making the created trace the active trace of channel 1 (omitted optional mnemonic SENSe1). TRAC:STIM? CH1DATA Query the 20 stimulus values of the created trace. In the default format setting, the data is returned as a comma-separated list of 10-digit ASCII values.
|