How can I determine the time t when a specific value y is reached in SIMULINK?
11 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Enea Baumann
el 11 de En. de 2021
Comentada: Timo Dietz
el 11 de En. de 2021
Hi everyone,
I'm working on a simulation on SIMULINK which outputs me a value y(t).
I now want to know at what time y(t) reaches a specific value y_1.
So I need to determine t(y_1) = t_1 and somehow display it in SIMULINK?
Also I want to used that value t_1 for further calculations.
Is there any block that I can use for that?
Best regards
Enea
0 comentarios
Respuesta aceptada
Timo Dietz
el 11 de En. de 2021
There are multiple ways of doing this. One is to attach the source block "clock" to a triggered subsystem which contains just a connection between in and out. The trigger input is fed by a comparator which checks for y(t) = y_1.
The triggered block now takes over the simulation time input to its output only in case the comparator triggers.
12 comentarios
Más respuestas (0)
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!