Access Simulation Time in Simulink Model

4 visualizaciones (últimos 30 días)
Krupa Prag
Krupa Prag el 11 de Nov. de 2020
Comentada: Krupa Prag el 12 de Nov. de 2020
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
The Clock block provides the time.

Más respuestas (0)

Categorías

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

Productos


Versión

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by