Contenido principal

importSParameter

Import S-parameters to current project

Since R2026a

Description

status = importSParameter(project,sparam,Name=Value) imports one or more S-parameter files specified by sparam to the project project.

The function also generates a log file, <project_name>/interfaces/<interface_name>/logs/import_snp.log, that lists all the details of the import including the output of the Touchstone checker.

Input Arguments

collapse all

Signal Integrity Toolbox project, specified as an object.

Name of the S-parameter file(s) to import, specified as a string for a single S-parameter file or an array of strings for multiple S-parameter files. The S-parameter files are Touchstone files which must exist in the specified path.

Name-Value Arguments

collapse all

Specify optional pairs of arguments as Name1=Value1,...,NameN=ValueN, where Name is the argument name and Value is the corresponding value. Name-value arguments must appear after other arguments, but the order of the pairs does not matter.

Example: stat = importSParameter(project,{"sparam1.s2p","sparam2.s4p"},wrapperName="wrapper") imports sparam1.s2p and sparam2.s4p S-parameter files where the mod file wrapper name is wrapper.

Full or relative path to the S-parameter files to be imported, specified as a string. If you do not provide a path to the S-parameter file, the function uses the present working directory as the default path.

Name of the mod file wrapper when you import multiple S-parameters, specified as a string.

Output Arguments

collapse all

Flag to show the import status of S-parameter files, returned as 0 or 1.

  • 0 — There are errors or warnings during S-parameter import. See the log file <project_name>/interfaces/<interface_name>/logs/import_snp.log to know more.

  • 1 — S-parameter import is successful.

Version History

Introduced in R2026a