- The IEEE 1588 Read Parameter block provides the necessary functionality. To use this block to measure system time, set "Parameter to read" to "System time (nanoseconds)" or or "Calendar time (time_t)". For more information about the Read Parameter block, see the link below: https://www.mathworks.com/help/slrealtime/io_ref/ieee1588readparameter.html
- The Read Target Time block that ships with Speedgoat I/O Blockset: https://www.speedgoat.com/help/slrt/page/io_main/refentry_read_target_time
How do I get the run time or system time of my Speedgoat target computer in R2020b and beyond?
34 views (last 30 days)
Show older comments
MathWorks Support Team
on 22 Oct 2020
Edited: MathWorks Support Team
on 5 Apr 2025
I'm upgrading from R2019a to R2020b and I can't find analogous blocks to the "Elapsed Time" and "Time Stamp Delta" blocks to get run time or clock time from my Simulink Real-Time (SLRT) target computer. Adding a Clock block seems to cause CPU overloads.
Accepted Answer
MathWorks Support Team
on 4 Apr 2025
Edited: MathWorks Support Team
on 12 Aug 2024
There are two options for getting the Speedgoat target system time in your model:
Note that the MathWorks 'IEEE 1588 Read Parameter' uses the standard Epoch 1970-01-01 00:00:00, whereas the Speedgoat 'Read Target Time' blocks appears to use the Epoch 0000-00-00 00:00:00. For any further questions regarding this block, reach out to Speedgoat support.
Refer to the following MATLAB Answer for setting the system time of your Speedgoat target computer: How do I set the system time of my Speedgoat target computer?
0 Comments
More Answers (0)
See Also
Categories
Find more on Target Computer Setup 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!