微波EDA网,见证研发工程师的成长!
首页 > 研发问答 > 微波和射频技术 > 天线设计和射频技术 > How to add harmonic conent in time domain in ADS?

How to add harmonic conent in time domain in ADS?

时间:04-08 整理:3721RD 点击:
Hi,

If I write ts(IDS.i) then I can see the current waveform in time domain.
But if I write ts(IDS.i[0])+ts(IDS.i[1])+ts(IDS.i[2])+ts(IDS.i[3])+..., I cannot obtain the correct waveform.
Anyone can help me how to write the expression correctly?

Thanks!

check with what()
also correct ) to ] in your expression

no, it's just typo here.
it seems that ADS trate the expression "ts(IDS.i[0])+ts(IDS.i[1])+ts(IDS.i[2])+ts(IDS.i[3])+..." as ts(constant magnitude), the result is always a perfect sinus waveform.

Try with ts(IDS.i[0]+IDS.i[1]) etc.

It doesn't work, neither. The result is a different perfect sinus waveform.
If you have a look of the 2 expressions in spectrum, Both does not contain any harmonic content.

will you share the plots? circuit?
Sorry to say that unable to understand the problem.

The left waveform is correct, but how can I write a expression by adding separate components to obtain the same waveform?

For me it looks OK.
will you take individual plots for me?
I mean i[1],i[3],I[5] and i[7].

The individual plot ts(IDS.i[1]),ts(IDS.i[2]),ts(IDS.i[3]),... look ok. Each has different magnitude and phase
The question is, by using "+", it cannot be added together in a correct manner.
thanks.

f0=HB.freq[1]
T0=1/f0
dt=(T0/5)/20
tx=[0.0::dt::T0]
numtpts=int(T0/dt)+1

y0=real(IDS.i[0])
y1=real(IDS.i[1]*exp(j*2*pi*1*f0*tx))
y2=real(IDS.i[2]*exp(j*2*pi*2*f0*tx))
y3=real(IDS.i[3]*exp(j*2*pi*3*f0*tx))
y4=real(IDS.i[4]*exp(j*2*pi*4*f0*tx))
y5=real(IDS.i[5]*exp(j*2*pi*5*f0*tx))

y=y0+y1+y2+y3+y4+y5

plot this y.

But why don't you write following simply ?
y=ts(IDS.i[0::5], 0.0, T0, numtpts)

Thanks, this really works.
The reason is that my output signal Y consists 2 carriers Y1 and Y2. I want to separate the 2 carrier from time domain.
Y=Y1+Y2
Y1=mix(Ids.i,{1,0})+mix(Ids.i,{2,0})+mix(Ids.i,{3, 0})
Y2=mix(Ids.i,{0,1})+mix(Ids.i,{0,2})+mix(Ids.i,{0, 3})

Do you think is there any easier method?

Make custom AEL function for your purpose.
See https://www.edaboard.com/thread163549.html

Copyright © 2017-2020 微波EDA网 版权所有

网站地图

Top