[Just sharing] Steady-state and Tsw avg detection block (for switching converter simulation)

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

2 Likes

Hi Arief,

From your latest Github files, seems we need to change the “test_X2” block to “steady” to make it work. Right?

Best regards
WY

1 Like

Sorry, I made an error on what I upload.

You can try to download again.

thanks for your response.