Everything I read on the web, concerning this question, says that in order to measure or set the phase margin of an amplifier the loop must be opened and the phase lag around the loop measured when the gain around the loop equals -1 (unity loop gain).
This seems to be almost universal advice with its resulting practical problems such as DC offset across the break and creating the correct load for the output of the opened loop.
My question - Can the phase margin be measured in a closed loop setup, why is an open loop always recommended for this?
Classical amplifier theory says that for an amplifier to be stable the loop phase must be less than 180 degrees lag by the time the loop gain gets down to 1 (unity). To give sufficient phase margin the value of the compensation capacitor is often set to give a loop phase of, say, 135 degrees at unity loop gain (phase margin = 45 degrees).
Consider the following amplifier:-
Loop Gain = BAol
Aol = Vout/Vdiff
B = Vfeedback/Vout
Therefore loop gain = Vfeedback/Vdiff (using pk to pk values).
Loop phase is the phase of Vfeedback to Vdiff.
It appears that I can measure both loop gain and loop phase in a closed loop configuration.
Why can't I just increase the input signal frequency until Vdiff = Vfeedback (unity loop gain) and then measure the loop phase with a 2 channel oscilloscope (phase of Vfeedback to Vdiff) to determine or set the phase margin? (How short of 180 degrees the loop phase is).
Is there anything with this apparently very practical closed loop method of determining (or setting) phase margin. Why is such a much more practically difficult open loop technique so commonly recommended?