Question: Stop the simulation according to event

I do the numerical simulation with

lp:=dsolve(....,type = numeric, range = ta .. te)

The simulation stop at t=te .

I want to stop the simulation when e.g. x(t) < 0

How can i do it ?

 

Please Wait...