Access Simulation Time in Simulink Model

3 Ansichten (letzte 30 Tage)
Krupa Prag
Krupa Prag am 11 Nov. 2020
Kommentiert: Krupa Prag am 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.

Akzeptierte Antwort

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

Weitere Antworten (0)

Kategorien

Mehr zu Simulink Functions finden Sie in Help Center und File Exchange

Produkte


Version

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by