CAN unpack generate code

1 回表示 (過去 30 日間)
Mosen Xie
Mosen Xie 2016 年 4 月 14 日
編集済み: dzid_ 2019 年 1 月 1 日
when try to used the can unpack block read the DBC file ,and generate c coed , but the generation code is so big ,at least 1000 lines ,so i want to know have any ways to reduce the code line.
as every know ,hands write code interpretation the CAN dbc file just simple lines code.

回答 (1 件)

dzid_
dzid_ 2019 年 1 月 1 日
編集済み: dzid_ 2019 年 1 月 1 日
For me CAN unpack is also inefficient. It generates global variables for signals that I am not using (terminated). And they are Double datatype by default.

カテゴリ

Help Center および File ExchangeSimulink Coder についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by