7 Save/Recall/Print
7.3 Save
Trace
Exports Trace files in PC-readable .csv or .mdf formats.
By default, Trace files have the extension .csv. The default filename is Trace_
0000.csv, where the 4-digit number is the lowest number that does not conflict
with any filename in the current directory.
In the Swept SA measurement, Trace files can also be saved as MDIF files with an
.mdf extension. The MDIF format is used by Keysight’s ADS (Advanced Design
System) software to capture circuit responses.
The selection of CSV or MDF appears as a dropdown from the File Type field in the
Save to File dialog (only in the Swept SA measurement):
The default path for Trace data files is:
My Documents\SA\data\traces
The trace file contains a “meta” data header, which describes the current state of
the instrument. The metadata is detailed in "Trace File Contents" on page 2564
below.
Remote Command
:MMEMory:STORe:TRACe:DATA TRACE1 | TRACE2 | TRACE3 | TRACE4 | TRACE5 |
TRACE6 | ALL,<filename>
Example
:MMEM:STOR:TRAC:DATA TRACE2,"myTrace2.csv"
Exports the 2nd trace to the file myTrace2.csv in the current path
:MMEM:STOR:TRAC:DATA TRACE2,"myTrace2.mdf"
Exports the 2nd trace to the file myTrace2.mdf in the current path in MDIF format. Only available in
Swept SA measurement
Notes In SA Mode, Traces can be saved in Swept SA, OBW and TOI measurements. The SCPI syntax for TOI
and OBW has identical syntax to that for Swept SA, but only ever saves Trace 1 (since that is all there
is in those measurements)
If the save is initiated via SCPI, and the file already exists, the file is overwritten
Using the C: drive is strongly discouraged, since it runs the risk of being overwritten during an
instrument software upgrade
2563 Spectrum Analyzer Mode User's &Programmer's Reference