This block samples the input real signal u when u is larger than a threshold. On the other hand, when the input boolean signal trigger becomes true, the output y is reset to a default value.
u
trigger
y