Threshold blocks are used to detect values crossing of state variables during the simulation. This blocks use the solvers (ODE or DAE) to do that operation.