CAN log message timestamps are incorrect

2 views (last 30 days)
Hello, When I run a simulink simulation using either a real or virtual CAN bus and the Simulink block "CAN LOG" from the vehicle network toolbox the logged timestamps for the CAN messages are always offset by some amount. Eg If I wanted a CAN message to be sent out at time 1 second and again at time 2 seconds then when I check the log file it always shows the messages being offset by a second or more eg they are sent at 2.3 seconds and 3.3 seconds. Is this due to the log file starting to log the can bus before the simulation has even started? How can I fix this so the log file shows Timestamps similar to when simulink says it has sent the CAN messges?
Thanks

Answers (0)

Community Treasure Hunt

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

Start Hunting!