How to create a data received event?
조회 수: 1 (최근 30일)
이전 댓글 표시
I create a trigger interface ,a trigger receiver port and a runnable in AUTOSAR dictionary.But when I choose DataReceivedEvent,it warning like this:![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/259953/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/259953/image.png)
What should I do?Better give me a example.Thank you.
댓글 수: 2
Anand Muraleedharan Geetha
2020년 2월 2일
Is this issue solved? If so, could you please tell the steps you followed?
답변 (1개)
Ben
2024년 10월 21일
편집: Ben
2024년 10월 21일
Hi
You can refer belowlink
or Simple model
- Inport with Output Function call Sample time : -1
- Trigger Port in Function call subsystem , Trigger Type : function-call, Sample time Type : triggered
- Event for runnable in AUTOSAR Dictionary
Event Type : DataReceivedEvent
Event Name : e.g. DRE_SWC
Trigger : Data Port e.g. RP_IF.DE1
sample model and code generatio result
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1796160/image.png)
function call subsystem trigger port
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1796180/image.png)
Inport for output function call
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1796165/image.png)
Inport for output function call
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1796170/image.png)
Autosar Dictionary
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1796175/image.png)
댓글 수: 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!