ok, now I am confused.. going back to my example, lets assume this problem: we have a simple x' = sin(2.pi.t) and we want to make sure that x[t] values do not exceed 0.1 (i.e., trimmed at 0.1). The following script does not work, any idea?
NDSolve[{x'[t] == Sin[2*Pi*t], x[0] == 0, WhenEvent[x[t] > 0.1, x[t] -> 0.1]}, x, {t, 0, 1}];
Plot[x[t] /. %, {t, 0, 1}, AspectRatio -> Automatic]