Log actual/real simulation time in simulink

2 views (last 30 days)
mkmat
mkmat on 22 Dec 2015
Answered: Rebecca Krosnick on 24 Dec 2015
Hello,
I log my variables in a simulink model and I would like to log the real time of simulation as well. For example, to have the valiables and time as an array: [mm:hh ; mm:hh].
Any help?

Answers (1)

Rebecca Krosnick
Rebecca Krosnick on 24 Dec 2015
Simulink does not provide a feature for this, but the following MATLAB Answers post provides some workarounds: http://www.mathworks.com/matlabcentral/answers/30479-how-to-get-system-date-and-time-into-simulink

Categories

Find more on Prepare Model Inputs and Outputs in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!