MATLAB Answers

Get the system time in simulink real time

2 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!

More Answers (0)

Community Treasure Hunt

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

Start Hunting!