Program/App that inputs timestamp to Simulink real time?
古いコメントを表示
Is there a program/app that can send time to Simulink real-time? I need to run Simulink on two different programs and need to implement the same reference time. Wireshark is good for observing the time, but I don't think it's timestamps can be sent to Simulink.
回答 (1 件)
Umar
2024 年 6 月 25 日
移動済み: Walter Roberson
2024 年 6 月 25 日
0 投票
Hi Skylar, In response to your query, there are indeed ways to send time information to Simulink real-time for synchronization purposes. One approach could be utilizing network time synchronization protocols such as Network Time Protocol (NTP) or Precision Time Protocol (PTP) to ensure that both instances of Simulink have the same reference time. By setting up a time server that broadcasts accurate time information using NTP or PTP, you can ensure that both Simulink instances receive synchronized time data. This can help maintain consistency in simulations and ensure accurate results across different programs. Additionally, you may consider exploring custom scripts or plugins that can extract timestamp data from Wireshark captures and feed this information into Simulink. By parsing the timestamp information from Wireshark logs, you can potentially create a bridge between the two programs and synchronize their reference time. Hope that answers your question.
1 件のコメント
Walter Roberson
2024 年 6 月 25 日
More on Precision Time Protocol is at https://www.mathworks.com/help/slrealtime/io_ref/precision-time-protocol.html
カテゴリ
ヘルプ センター および File Exchange で Simulink についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!