A wincal measurement file in .mdf ascii format has been saved with the s-parameters in the following sequence.
Frequency s11 s21 s12 s22
However, iccap is excepting s11 s12 s21 s22. Is there a way in the .mdm file to specific the order of the s-parameter data?
Frequency s11 s21 s12 s22
However, iccap is excepting s11 s12 s21 s22. Is there a way in the .mdm file to specific the order of the s-parameter data?
There is not any way to specify the order of the s-parameters to be read in from the *.mdm file. As you note, the order in the *.mdm file is S11 S12 S21 S22, which at variances w/ the output format from wincal or some NWA's/PNA's.
This can however be rearranged during the datafile import, i.e. import from the *.mdf file.
In IC-CAP, under Examples > demo_features > 5_PEL_PROGRAMMING > 1_DATA_IMPORT_EXPORT > 2_READ_WRITE_DATAFILES > 3_Spar_TouchstoneS2P_and_MDIF_data and
see: READ_TOUCHSTONE_MDIF_PELdep.mdl
It has PEL code to import data from non-mdm type files. The example is most closely referring to touchstone/citifile type format but w/ a few minor changes re: what header one expects in the file, etc.it can be modified to work for *.mdif/.mdf s-parameter files. Via this PEL approach, the data can be read in and 'reordered' all at the same time.
I hope this helps! If you have further questions, please feel free to call/contact Agilent EEsof Technical Support at 1 800 473 3763; eesof_support@agilent.com
Best Regards
Else