Warning: The following command is preliminary. Its syntax may change. Be prepared to make changes to legacy scripts.

ExportSpreadsheet

Writes the S-parameters to disk in spreadsheet format (*.tab text file).

UI Access

From the Network Data Explorer tab, select File > Save As to open a Save As explorer window. Then select Data Table (spreadsheet) (*.tab) from the Save as type: drop-down menu.

Parameters
Name Type Description
<filePath> String The full path to the file.
<matrixType> Integer

One of the following:

  • 0 – S-Parameters
  • 1 – Y-Parameters
  • 2 – Z-Parameters
  • 3 – Gamma
  • 4 – Impedance
Note: The default value is 0.
<formalType> Integer

One of the following:

  • 0 – Magnitude/Angle (degrees)
  • 1 – Real/Imaginary
  • 2 – dB/Angle (degrees)
Note: The default value is 0.
<precision> Integer The number of significant figures.
Note: The default value is 10.
<frequencies> Array of Doubles A subset of the calculated frequencies. Any array values that don’t have calculated data will be ignored. An empty array will cause all frequencies to be written.
Note: The default value is an empty array.
<renormalize> Boolean If True, will renormalize the data to the value of renormImpedance before writing.
Note: The default value is False.
<renormImpedance> Double Data will be renormalized to this impedance before writing only if renormalize is True.
Note: The default value is 50 ohms.
Return Value

Boolean True if file was successfully written; else False.

 

Python Syntax ExportSpreadsheet()
Python Example

oNDE = oDesktop.GetTool("ndExplorer")

oData = oNDE.Open(<model path>)

success = oData.ExportSpreadsheet("D:\folder\ne133.tab", 0, 1, 12, [], True, 23)