How to implement error port for AUTOSAR receiver interface inport like suggested by Model Advisor check "mathworks.misra.AutosarReceiverInterface"
27 ビュー (過去 30 日間)
古いコメントを表示
The Model Advisor check "mathworks.misra.AutosarReceiverInterface" throws following warning: "AUTOSAR receiver interface inport does not have a matching error port." with follwowing suggested action: "Add missing error port and map to the corresponding AUTOSAR receiver interface inport."
But how can an error port for a Receiver port be implemented in Simulink? I couldn't find anything in the documentation.
2 件のコメント
回答 (2 件)
Jerry George
2020 年 2 月 13 日
編集済み: Jerry George
2020 年 7 月 31 日
The following steps will remove the warning.
- Add the required error port to the model.
- Open the Code Mappings Editor (https://www.mathworks.com/help/autosar/ref/autosarcodemappingseditor.html)
- For the error ports, set 'DataAccessmode' to 'ErrorStatus' and the Port to the input port that it supports.
I have attached a sample model with this answer.
6 件のコメント
Federico Roselli
2020 年 3 月 27 日
I followed what is in these 2 links:
https://it.mathworks.com/help/autosar/ug/autosar-communication.html#bsa24_3-6 chapter: Sender-Receiver Interface
and
https://it.mathworks.com/help/autosar/ug/configure-autosar-sender-receiver-communication.html chapter: Configure AUTOSAR Receiver Port for DataReceiveErrorEvent
The error port is simply another simulink input. After you define the input configure it on the Code Mappings Editor as said by Jerry George.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で AUTOSAR Blockset についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!