Steady-state detection.
Basically the working principle is to measure the error of a reference signal (in this example, output voltage) with its moving average value. If the error is within the ERROR_LIMIT continuously for a certain duration, then it is safe to assume that the system has reached steady state.
Another feature also implemented here is average switching period detection.
*This is a part of the FRA_V2 development that is aimed for faster total analysis time and improved accuracy even at very low SNR condition.
Welcome to review it here: QSPICE/steadystate_fswdetect at main · physicboy/QSPICE · GitHub
Cheers,
Arief,
Note-> only work for DC/DC obviously