Access Simulation Time in Simulink Model

3 vues (au cours des 30 derniers jours)
Krupa Prag
Krupa Prag le 11 Nov 2020
Commenté : Krupa Prag le 12 Nov 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.

Réponse acceptée

Fangjun Jiang
Fangjun Jiang le 11 Nov 2020
The Clock block provides the time.

Plus de réponses (0)

Catégories

En savoir plus sur Simulink Functions dans Help Center et File Exchange

Produits


Version

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by