How do I get the run time or system time of my Speedgoat target computer in R2020b and beyond?

32 次查看(过去 30 天)
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
编辑:MathWorks Support Team 2024-8-12
There are two options for getting the Speedgoat target system time in your model:
  1. 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
  2. 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
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 个)

Community Treasure Hunt

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

Start Hunting!

Translated by