Access Simulation Time in Simulink Model

In my Simulink Model I have a MATLAB function block which requires the current simulation times.
How can I access the current Simulation time from the Simulation Model?
Thanks.

 Respuesta aceptada

Fangjun Jiang
Fangjun Jiang el 11 de Nov. de 2020

1 voto

The Clock block provides the time.

Más respuestas (0)

Categorías

Más información sobre Modeling en Centro de ayuda y File Exchange.

Productos

Versión

R2020a

Preguntada:

el 11 de Nov. de 2020

Comentada:

el 12 de Nov. de 2020

Community Treasure Hunt

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

Start Hunting!

Translated by