Borrar filtros
Borrar filtros

CAN message fault in Simulink

2 visualizaciones (últimos 30 días)
nafiseh nabavi
nafiseh nabavi el 2 de Abr. de 2024
Respondida: Ayush el 5 de Ag. de 2024
Hi
how can I check if data corruption and loss message of CAN bus have happened? I've been designing some algorithms in Simulink then I will convert it to a piece of code and upload it to a hardware.

Respuestas (1)

Ayush
Ayush el 5 de Ag. de 2024
Hello Nafiseh,
To check for data corruption and loss of CAN message you can utilize the several CAN blocks that Simulink provides. For more information on the "CAN" blocks, you can refer to the following documentation:
Furthermore, for your particular use case specifically, you can try leveraging the following "CAN" blocks:
1. CAN Log block to log the CAN messages being sent from the network to be saved and further analysed for data corruption or loss. You can also use the CAN Replay block to stream the logged data and visualise them to debug effectively. For more information on blocks you can refer to the following documentation:
2. CAN Unpack block to unpack the CAN messages into signal outputs to see the type of data or parameters being used to generate a signal and compare it with the desired data type to check for corruption or losses. For more information on this block, you can refer to the following documentation:
Hope it helps!

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by