重播 CAN FD 报文实际时间和仿真时间不对应
4 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
以记录并重播 CAN FD 报文为例
实际时间录取了90s的数据,仿真的时间stop time却要设置50000。我想要重播数据时仿真时间与实际时间一致
0 comentarios
Respuestas (1)
Abhishek
el 11 de Ag. de 2023
Editada: Abhishek
el 5 de Sept. de 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
0 comentarios
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!