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!