Thanks for the reply. I tried out your suggestion simulating a simple RC low passfilter (R=15k, C=2.2nF, VIN AC 1) .ac dec 20 100 1MEG and the following .measure statement: .MEAS AC BW when V(out)=1/sqrt(2) for checking the bandwidth of it (theoretically it should be 4822.9kHz)
To my surprise the result LTspice gave me was 3104.33Hz! If I use PSpice with the same .ac statement and use sfle(-3) on vdb(out), I get 4811.3kHz, with
sfle(0.707106781) on V(out) I get 4826.3k, which both are acceptable results, given the 20 points per decade. Why does LTspice not give me a similar result?
I found out the reason for this strange result. The .measure statement should be .MEAS AC BW when mag(V(out))=1/sqrt(2)
The reason why I did not do it like that the first time is the misleading example information on " twiki.org/LTspiceHelp/LTspiceHelp/_MEASURE_Evaluate_User_Defined_Electrical_Quantities.htm", there it is stated:
.MEAS AC rel8 when V(out)=1/sqrt(2)
The result rel8 is the frequency that the magnitude of V(out) is equal to 0.7071067811865475.
Anyway, I can make it work now as it should but I think it is rather cumbersome and it is also a pity the vdb(x) syntax is not recognized
Hugo