.STOP command, does it work?

Running lots of transient sims, and if my 5V buck drops out of regulation, I want to abort the simulation. I used .STOP WHEN (time>1)*(V(buckout)<5) and this is ignored.

You need to use B source with abortsim function.

abortsim(V(A)) → when V(A)>0.5 → stop simulation


Best regards

Hey Ivan1. Thanks! That worked. But strangely, QSPICE gets “hung” after an abort. The green “run” button is faded, and I can’t rerun. And you would think in the Simulation message window, it would tell you that “Abort condition was met, Simulation Aborted…”
I have to exit out and re-launch QSPICE. Does that happen to you?

When I try this simple example it works without a issue.

Best regards