필터 지우기
필터 지우기

How to implement error port for AUTOSAR receiver interface inport like suggested by Model Advisor check "mathworks​.misra.Aut​osarReceiv​erInterfac​e"

조회 수: 25 (최근 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개)

Jerry George
Jerry George 2020년 2월 13일
편집: Jerry George 2020년 7월 31일
The following steps will remove the warning.
  1. Add the required error port to the model.
  2. Open the Code Mappings Editor (https://www.mathworks.com/help/autosar/ref/autosarcodemappingseditor.html)
  3. 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
Federico Roselli 2020년 3월 27일
I followed what is in these 2 links:
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.

카테고리

Help CenterFile Exchange에서 AUTOSAR Blockset에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by