Timestamp on CAN Replay files doesn't match with timestamp on CAN Log files
5 views (last 30 days)
Show older comments
I am using the Vehicle Network Toolbox to log and replay vehicle data on the CAN bus. I logged data from a vehicle using the CAN Log block (call this Data 1) and am now replaying it to a different device using the CAN Replay block (call this Data 2). I noticed that when plotting the vehicle data that was sent over the Replay block against the original data recorded from the vehicle, there is a time scaling and offset that occurs (timestamp Data 1 != timestamp Data 2) although the correct data was sent at each index. This scaling occurs as both a stretch and an offset, and I can vary the amount of time it is off/stretched by when varying the simulation parameters. I have added additional blocks and confirmed what is being sent has the same timestamp as the data being received by the CAN Replay, but it doesn't match the original data. What can I do to troubleshoot getting the timestamps to directly match? Are there simulation settings or additional blocks that can be used with Vehicle Network Toolbox to match the times better?


0 Comments
Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!