Get the system time in simulink real time

7 views (last 30 days)
Hi everyone,
I am using simulink real time and for my model, I need to know the system time (Windows OS) when I start to run the model on the target machine.
The functions such as "clock", "cputime", or "now with datetime" unfortunately are not compatible with the coder of simulink real time.
I would be very grateful for any idea how to solve the problem.
Many thanks in advance!
Inna

Accepted Answer

Maadhav Akula
Maadhav Akula on 18 Mar 2021
  1 Comment
Inna Forsiuk
Inna Forsiuk on 18 Mar 2021
Thank you very much! It is exactly what I was looking for.

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!