CAN Receive on TI C2000 (Silmulink)

2 views (last 30 days)
Szymon Elert
Szymon Elert on 7 May 2021
Answered: Dhanashree Mohite on 18 Oct 2021
Hi there!
I have a problem with receiving datas form CAN bus on Texas C2000 processors using Simulink. I'm using eCAN Receive block and I have a situation when I disconnect CAN Bus I have the last received value by the rest of simulation but I want to read 0 when I disconnect CAN Bus. Does anyone know what to do?
In the help is writting:' When the block is used in polling mode, and a new message is not created between consecutive executions of the block, the existing message is repeated.' I dont want repeated message but only 0.

Answers (1)

Dhanashree Mohite
Dhanashree Mohite on 18 Oct 2021
In latest 2021b matlab, the 'Action when message not received' option is provided which allows to 'Reset all fields to zero' for eCAN receive whenever the message is not received.

Community Treasure Hunt

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

Start Hunting!