- 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?
32 次查看(过去 30 天)
显示 更早的评论
MathWorks Support Team
2020-10-22
编辑: MathWorks Support Team
2025-4-5
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.
采纳的回答
MathWorks Support Team
2025-4-4
编辑:MathWorks Support Team
2024-8-12
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 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Target Computer Setup 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!