- 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?
27 ビュー (過去 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!