I have a circuit You can down here
I am trying to find out the transfer function of Voltage across L3/Input Voltage
.
When you probe at L3, you can see the voltage generated. This is what I am trying to replicate in my transfer function output.
I am using lsim to calculate the system output.
lsim(test,input,time) here input = modulator output at Q.
time = 1:1:length of input;
I am getting strange result incase of transfer function output.
I have verified the transfer function multiple times and it seems to me that the derivation of transfer function is proper.
What is wrong here ? can someone help me to verify this.
Thanks.
A1
andV2
, connectV1
toR1
and replaceV1
's value withAC 1
. Then, instead of a Transient analysis, do an AC analysis, by Right-Clicking on the.tran 0.1
and changing to the correct tab. You can choose any type, but here's a start: type = decade, nr. points = 100, start = 1k, stop = 1G. \$\endgroup\$Rout=<value>
in its attributes. Also, if you only need a fixedAM
amplitude, there's no need for an extra voltage (V1
); instead, you can addVhigh=<value>
andVlow=<value>
to the attributes, just like anyA-device
. \$\endgroup\$Laplace=(s^2+10)/(s^2+0.5*s+1)
(just an example). Note that this is the only place LTspice accepts^
as exponentiation, elsewhere is**
. One more note: don't run aLaplace
function in.TRAN
, it's very inefficient and prone to errors; use RLC to create your own transfer function and.TRAN
will run blazingly fast (and accurate). That's it, gotta run. Good luck! \$\endgroup\$