MATLAB: Stop Ramp function before simulation time expires

simulinkstop exectuion of ramp block

As far as I understand, the value of a Ramp block will keep increasing (or dereasing) depending on the slope. Can you stop the value to stop at certain time before the simulation time ends? I don't mean to terminate the simulation.
Thanks.

Best Answer