AnsweredAssumed Answered

Creating a Loop for Postprocessing

Question asked by vpogre on Mar 9, 2004
Latest reply on Mar 16, 2004 by ROB_LEFEBVRE
I need to create a loop to calculate Zin and Zout from available data file with S11 and S12. What is the command sequence for looping through all frequency values using the IFF, IFTRUE, LABEL and GOTO commands. Could not figure it out.

I don't have Wizard. It's version 7.5.
Here is what I did:

USING DATA1.DATA
FREQ1=10E6
MEAS1=GETVALUEAT(.DB[S11], FREQ1)
CALC=10^(MEAS1/20)
MEAS2=GETVALUEAT(.ANG[S11], FREQ1)
CALC2=SIN(MEAS2)
CALC1=COS(MEAS2)
S11_MAG=CALC*COMPLEX(CALC1,CALC2)
Z11=50*((1+S11_MAG)/(1-S11_MAG))

How to make a loop for all frequency steps up to Fmax?  

Outcomes