Imports the S-parameter data in the Script workspace to the S-parameter elements. The S-parameter data is a string that contains the exact data as the s-parameter data file supported by s-parameter elements, and the file formats are defined in the S-parameter file formats page. This script is supported by the following elements:
- Optical N Port Propagation Parameter
- Optical N Port S-Parameter
- Optical Nonlinear S-Parameter
- Optical Time Variant S-Parameter
[[Note:]] the filter transfer function depends on the sample rate when providing filter coefficients. For more information on the digital filters please visit the Digital filter coefficients automatic fitting page and the How to set up Digital filter for S Parameter elements post. |
Syntax |
Description |
---|---|
importsparameter("elementName" , sParameterData); |
Imports the S-parameter data "sParameterData" to the element "elementName". "sParameterData" is a string which contains the exact data as the s-parameter data file supported by s-parameter elements. |
Example
Below is a simple example of importing the S-parameter defined in "spar" to the Optical Time Variant S-Parameter element "SPAR_1":
spar = read("spar.txt");
importsparameter("SPAR_1", spar);
The content in the file "spar.txt" is the S-parameter for the Optical Time Variant S-Parameter element:
("port 2", "TE", 1, "port 1", 1, "modulation")
(1, 5)
-2 -1.5 -1 -0.5 0 (2, 11)
1.91561e+14 1.20499 0 1.22927 0 1.26623 0 1.29932 0 1.32 0
1.95943e+14 1.20499 0 1.22927 0 1.26623 0 1.29932 0 1.32 0
("port 2", "TM", 2, "port 1", 2, "modulation")
(1, 5)
-2 -1.5 -1 -0.5 0
(2, 11)
1.91561e+14 1.20499 0 1.22927 0 1.26623 0 1.29932 0 1.32 0
1.95943e+14 1.20499 0 1.22927 0 1.26623 0 1.29932 0 1.32 0