Thank you for the quick answer,
I need it during the simulation, not in the post processing, because that time value will be a delay to introduce in a variable continous delay block.
Ah... you can try something combining the clock and other signal blocks such as the model below.
Note that Discontinuities printout in Run parameters were switched on to see the pulses.
Yes I thought you would have some constraints...
It can't be that 'constant' if you want to measure it during the simulation.
How does your delay should look like? Stairs with one or several steps?
I have a signal representing the velocity of a body. This is a decreasing signal. I have a brake signal. I want to brake when the velocity reaches a precise value (40km/h). I think that I need a constant delay of the brake signal,represented by the time interval between the initial velocity and 40km/h.
Sorry for my english
For what you describe it will be simpler to multiply the brake command by a variable gain which will be zero or one depending on the velocity.
See this model and let me know if it's not explicit - all the logic is in the expression of the f(x) block: