Clear Filters
Clear Filters

重播 CAN FD 报文实际时间和仿真时间不对应

4 views (last 30 days)
zufei gu
zufei gu on 19 Apr 2023
Edited: Abhishek on 5 Sep 2023
以记录并重播 CAN FD 报文为例
实际时间录取了90s的数据,仿真的时间stop time却要设置50000。我想要重播数据时仿真时间与实际时间一致

Answers (1)

Abhishek
Abhishek on 11 Aug 2023
Edited: Abhishek on 5 Sep 2023
Hi Zufei,
I understand that you want to replay CAN FD messages in sync with real-time, ensuring simulated time aligns with actual time. However, I acknowledge the challenge you're currently facing in achieving this synchronization.
This delay is caused by other application activities that interrupts MATLAB and causes hitches in the performace. As such, it's variable to even quote latency at all because it can be affected by so many variables. So, the Latency and timing operations on desktop cannot be guaranteed.
If deterministic latency and extremely low reliable latency are required, then you should consider using a real-time platform, like Simulink Real-Time.
For further insights and practical guidance, you might find the VNT example on periodic CAN communication beneficial. This resource can be accessed at: https://in.mathworks.com/help/vnt/ug/periodic-can-communication.html

Products


Release

R2022b

Community Treasure Hunt

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

Start Hunting!