I am simulating band pass filter and would like to calculate the bandwidth.
vmax: MAX(mag(v(vout)))=(37.891dB,0°) FROM 1.4e+009 TO 1.8e+009
f1=1.55052e+009 FROM 0 TO 1.55052e+009
f2=1.60742e+009 FROM 0 TO 1.60742e+009
How to calculate bw = f2 - f1 by LTspice command? It would be nice to format result e.g. "bw=56.9Meg" or "bw=56.9e+6"
Code:
.meas Vmax MAX (mag(V(vout)))
.meas AC f1 FROM 0 TARG mag(V(vout))=Vmax/sqrt(2) RISE=1
.meas AC f2 FROM 0 TARG mag(V(vout))=Vmax/sqrt(2) FALL=1
f1=1.55052e+009 FROM 0 TO 1.55052e+009
f2=1.60742e+009 FROM 0 TO 1.60742e+009
How to calculate bw = f2 - f1 by LTspice command? It would be nice to format result e.g. "bw=56.9Meg" or "bw=56.9e+6"