Hello all,

I am attempting to perform an iterative loop in an S-parameter ADS simulation. I would like to run a simulation and based on the system S21 at a particular frequency I want to adjust a variable and then run the simulation again (effectively a for loop). Is this possible? I am having trouble finding how I can index the S21 data following the first iteration. I have had a look at AEL briefly, perhaps the solution lies with some sort of macro but I am crossing my fingers for something a little simpler!

Thanks in advance for your help,

Matt

I am attempting to perform an iterative loop in an S-parameter ADS simulation. I would like to run a simulation and based on the system S21 at a particular frequency I want to adjust a variable and then run the simulation again (effectively a for loop). Is this possible? I am having trouble finding how I can index the S21 data following the first iteration. I have had a look at AEL briefly, perhaps the solution lies with some sort of macro but I am crossing my fingers for something a little simpler!

Thanks in advance for your help,

Matt

You can use an S-Parameter controller that computes the S-Parameters at just the frequency of interest. Then you will eliminate the issue with indexing the S21 data.

This example: http://edocs.soco.agilent.com/display/eesofkcads/X-dB+Gain+Compression+Simulation+with+Maximum+Gain+Point+used+as+Reference

uses a sequential optimization. While it doesn't solve your specific problem, techniques it uses may be applicable to the problem you are attempting to solve.