Program/App that inputs timestamp to Simulink real time?
Show older comments
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.
Answers (1)
Umar
on 25 Jun 2024
Moved: Walter Roberson
on 25 Jun 2024
0 votes
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 Comment
Walter Roberson
on 25 Jun 2024
More on Precision Time Protocol is at https://www.mathworks.com/help/slrealtime/io_ref/precision-time-protocol.html
Categories
Find more on Simulink 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!