I have been trying to use “Electrical N Port S-Parameter” and “Optical Modulator Measured” to make a compact model for electroabsorption modulator lately. There are some issues that are not addressed really well by INTERCONNECT.
In either “Electrical N Port S-Parameter” or “Optical Modulator Measured”, under standard, there is “s parameters” or “measurement” that shows the data loaded from the text files. Both field are officially read only. To me this sounds unnecessary and inconvenient. Here is the reason. Let’s say I want to make customized components based on some user defined S parameters. If I want to do this entirely based on INTERCONNECT, I would have to use INTERCONNECT to write the s parameter file and then load it back in. This seems to be a quite round-about way of solving the problem, not to mention that writing and loading take quite a bit of simulation time. Instead, the user should be able to directly input the data in “s parameters” or “measurement” as a direct one-step approach.
Actually, for some elements like “Optical Modulator Measured” or “Optical S-Parameter”, the “s parameters” and “measurement” are actually addressable by “set” command, which is very convenient for me. They are only officially “read only” according to the manual. But for element like “Electrical N Port S-Parameter”, such field is indeed read only.
Since I have to, in some case, write text file using INTERCONNECT command, I often face the scenario of having to write a matrix of data into a .s2p file using num2str. num2str generates tab separated column, which cannot seems to be recognized by INTERCONNECT. I have attached two identical .s2p files, one generated by MATLAB with space separated column, the other generated by INTERCONNECT with tab separated column. Only the former works. I have change the extention to .txt because KX does not allow me to upload the .s2p file. Simply change it back to .s2p after you download it.
Is there a way of generating large text data file containing space separated column without using for loop? If not, can we add this feature in the future release?
EAM_electrical.txt (91.6 KB)
EAM_s.txt (139.8 KB)