CAN Bus Timeout C2000
古いコメントを表示
Hi all,
I am trying to add a "Timeout" on the receive side of the CAN bus, so that when a specific amount of time is pass and there is no reception of a new CAN message, a default value will be present in the transmission side. Is that possible? Bellow there is a link with the Simulink Model: https://www.dropbox.com/s/rk1ipb45e6pc2aj/test_can_TO.slx?dl=0
Any answer will be appreciated!
回答 (1 件)
Venkatesh Chilapur
2017 年 11 月 9 日
0 投票
Hi,
You can create a counter and reset it when you get a CAN message (from the function call of the CAN block or an interrupt). If the counter reaches the timeout value before a CAN message is received, than we can trigger a specific subsystem. Regards,
Venkatesh Chilapur
2 件のコメント
Kyriakos Sampatakakis
2017 年 11 月 13 日
Marek Laszlo
2018 年 3 月 26 日
Hello, have you solved this timeout?
Best Regards, Marek Laszlo
カテゴリ
ヘルプ センター および File Exchange で Signal Operations についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!