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

조회 수: 4 (최근 30일)
zufei gu
zufei gu 2023년 4월 19일
편집: Abhishek 2023년 9월 5일
以记录并重播 CAN FD 报文为例
实际时间录取了90s的数据,仿真的时间stop time却要设置50000。我想要重播数据时仿真时间与实际时间一致

답변 (1개)

Abhishek
Abhishek 2023년 8월 11일
편집: Abhishek 2023년 9월 5일
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

카테고리

Help CenterFile Exchange에서 Scopes and Data Logging에 대해 자세히 알아보기

제품


릴리스

R2022b

Community Treasure Hunt

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

Start Hunting!