How to detect a especific time on Simulink when a condition is true?

2 visualizaciones (últimos 30 días)
I'm finding a way to detect, save and later use of an especific time if a condition is true while simulink is running. I'm using clock time signal and a voltage measurement signal.
The idea is: If voltage measurement is greater or equal to a threshold then save that exact time or have available that value on Simulink to later use.
Thanks alot.

Respuesta aceptada

MEHABOOBSUBANI GULEDKOPP
MEHABOOBSUBANI GULEDKOPP el 13 de En. de 2019
Hi,
Simulation Results will be stored in variable yout from which you can extract the time at which your conidition has become true. You can also make use Simulink Data Inspector feature to view the Simulation Results in the form of graph.

Más respuestas (0)

Categorías

Más información sobre Simulink en Help Center y File Exchange.

Productos

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by