ads export s2p
时间:03-31
整理:3721RD
点击:
Hello,
I run a parameter sweep (x = 1,2,...to 100) with S parameters simulation.
I can see 100 different [S] curves in Data Display.
But how to export 100 different s2p files from the dataset ?
If I try this with data file tool, it write me only the first S matrix (x=1).
Is there a method to bypass it ? by AEL command ?
Thank you.
I run a parameter sweep (x = 1,2,...to 100) with S parameters simulation.
I can see 100 different [S] curves in Data Display.
But how to export 100 different s2p files from the dataset ?
If I try this with data file tool, it write me only the first S matrix (x=1).
Is there a method to bypass it ? by AEL command ?
Thank you.
Ok, I find a solution but it's not very easy.
I have create a AEL user functions which load the number of sweeps and file name, and make a loop to create s2p (with incremental name) one by one, using the ADS pre-defined function WRITE_SNP.
That is, for the loop:
sweepvar_s=sprintf("%d",sweepvar[i]);
file_name_s=strcat(file_name,sweepvar_s,".s2p");
action=write_snp(file_name_s,S[i,::],"S data","GHz","MA",50);
After, I use it in my Schematic as an meas. equation. or in Display as equation.
If an ADS developper read this topic, please create this function in the next version of your soft ! :D
I think a lot of users need to this functionnality !