Saving Trace Data to a File

Other topics about Data Output

Saving Data in CSV Format

The E5071C allows the user to save data for the active trace on the active channel to a CSV file (file extension *.csv) and to load the data into PC application software for further processing.

Trace data are saved in the format shown below.

Example of saved trace data

"# Channel 1"

"# Trace 1"

Frequency,                    Formatted Data,            Formatted Data

+3.00000000000E+005, +1.41837599227E-002, +1.43446459328E-006

+4.27985000000E+007, +1.41275293412E-002, +2.02407834551E-004

+8.52970000000E+007, +1.41334093048E-002, +4.00643331604E-004

+1.27795500000E+008, +1.41240661092E-002, +6.09250514670E-004

+1.70294000000E+008, +1.41402155348E-002, +8.05620003993E-004

The first line shows the number of the active channel at the time the data was saved.

The second line shows the number of the active trace at the time the data was saved.

The third line is a header line indicating the contents of each item of trace data written on the fourth line onward.

The fourth line onward shows the trace data. The amount of data is determined by the number of points (frequency) assigned to the trace.

Saving Trace Data

Follow the procedure below to save trace data from the E5071C.

  1. Press Channel Next/Channel Prev keys and Trace Next/Trace prev keys to select the trace to be saved.

  2. Press Save/Recall key.

  3. Click Save Trace Data to open the Save As dialog box.

  4. Select the destination folder and input a file name.

  5. Click Save to save the file.

Saving Data in Touchstone Format

You can also save trace data of a E5071C active channel to a Touchstone format file, based on 1- to 4-port models.

Touchstone file data format

You can save data in "log magnitude - angle", "linear magnitude - angle", or "real number - imaginary number."

When AUTO is selected, the data format is automatically set according to the display format of the active trace. However, when the display format of the active trace is set to one other than log magnitude format (LogMag), linear magnitude format (LinMag), or real-imaginary number format (Real/Imag), the data format is automatically set to real-imaginary number.

You can use data saved in Touchstone format for a circuit simulator such as Keysight Advanced Design System (ADS) on your PC (personal computer) or workstation. For more information on the ADS, refer to the operation manual that comes with the system.

File types of Touchstone files

File types of the E5071C Touchstone files are s1p, s2p, s3p, and s4p. The file type indicates the number of ports of the data structure that is output to the Touchstone file.

Data structure in Touchstone file

Data structure of the Touchstone file consists of a header part and a data part. The contents of the file is text data, which is ready to be read with a general text editor.

The header part consists of the comment line and option line.

The header parts of s1p and s4p are shown below.

Header of s1p

!Keysight Technologies,E5071B,<ID>,<FW Revision>
!Date <Date>
!Data & Calibration Information
!Freq Sww:Method(Stat)
!PortZ PORTw:R+jX
!Above PortZ is port Z conversion or system Z0 setting when saving the data.
!When reading, reference impedance value at option line is always used"
# Hz S FMT R Z0

Header of s4p

!Keysight Technologies,E5071B,<ID>,<FW Revision>
!Date <Date>
!Data & Calibration Information
!Freq Sww:Method(Stat) Sxw:Method(Stat) Syw:Method(Stat) Szw:Method(Stat)
.
.
!PortZ PORTw:R+jX       Portx:R+jX      Porty:R+jX      Portz:R+jX
!Above PortZ is port Z conversion or system Z0 setting when saving the data.
!When reading, reference impedance value at option line is always used"
Swz:Method(Stat) Sxz:Method(Stat) Syz:Method(Stat) Szz:Method(Stat)
# Hz S FMT R Z0

Comment line

Touchstone data files include comments. Comments are preceded by an exclamation mark (!).

Each item has the following meaning:

Parameter

Description

Sww to Szz

S parameters of the selected test port; corresponds in ascending order, beginning with w to z.

Method

Calibration type applied to S parameter.

Stat

 

State of S parameter calibration and error correction setting (ON, OFF, or --)

ON = Error correction is set to ON
OFF =Error correction is set to OFF
-- = Calibration is not performed

PORTw to PORTz:

Single-end port impedance setting when saving the data. This is not valid when reading the file. When reading, the reference impedance value Z0 at option line is always used.

 

Option Line

The option line is formatted as follows.

# Hz S FMT R Z0

Parameter

Description

FMT

Data format

RI = Real number - imaginary number
MA = Linear magnitude - angle
DB = Log magnitude - angle

Z0

Reference impedance value

 

The structure of the data part depends on the combination of the selected file type and specified port.

The following figures show the data structures of files saved in Touchstone format.

1-port Touchstone file

 

 2-port Touchstone file

 

 3-port Touchstone file

 

 4-port Touchstone file

Restrictions when saving data in Touchstone format

The following restrictions apply when saving measurement data into Touchstone format.

Saving procedure

Follow the steps below to save trace data in Touchstone format.

  1. Press Channel Next/Channel Prev keys and Trace Next/Trace prev keys to select the trace to be saved.

  2. Press Save/Recall key.

  3. Click SnP > SnP Format.

  4. Click the softkey that corresponds to the data format you want to save.
     

    Softkey

    Function

    Auto

    Data format is automatically set according to the display format of the active trace. When the display format of the active trace is set to one other than log magnitude format (LogMag), linear magnitude format (LinMag), or real-imaginary number format (Real/Imag), the data format is automatically set to real-imaginary number.

    LogMag/Angle

    Select "log magnitude - angle" data format

    LinMag/Angle

    Select "linear magnitude - angle" data format

    Real/Imaginary

    Select "real - imaginary number" data format

  1. Click the softkey for s1p, s2p, s3p, or s4p according to the file type you want to save.

  2. Click the softkey that corresponds to the combination of ports that you want to save. For example, when pressing s3p in Step5, softkeys displayed are 1-2-3, 1-2-4, 1-3-4, and 2-3-4. If you want to save the data of the channel for which port 1, port 2, and port 4 are measured, press 1-2-4.

  3. SaveAs dialog box opens. For its operations, use an external keyboard and mouse.

  4. Specify the folder to which the file should be saved, enter a file name, and then press Save to save the file.