--- In LTspice@..., <frank_wiedmann@...> wrote:
If you want to measure phase margin or gain margin with a .measure command, you can take a look at Measure_Margins.asc from . I recommend that you download the archive LoopGain_Probe.zip so that you have all the required files.
Best regards,
Frank
Thanks, Frank,
The Tian method uses equations that are far too long and error-prone. I would never be able to find a typo. Also, it requires an additional subcircuit that has to be included in each circuit, plus changes to the Control Panel defaults. These all take time to incorporate and to troubleshoot when something goes wrong.
I much prefer the method shown by Kris Lokere in "LTspice IV: Stability of Op Amp Circuits". It is much simpler.
I will translate your .measure statements to Lokere's demo and see if it gives the same results.
Thanks,
Mike