Why can I not convert my runnable from TimingEvent triggered to DatReceivedEvent triggered?

조회 수: 9 (최근 30일)
I have an AUTOSAR model in which I would like to convert one of the runnables to event triggered based on data reception i.e. as a DataReceivedEvent triggered runnable. However, when I try to change the trigger event type in the AUTOSAR properties pane, I see the following error:
Runnable 'Runnable_Name' is mapped to a model Step Function. This runnable must be triggered by a TimingEvent.
How can I configure my model such that my runnable is triggered by a DataReceivedEvent?

채택된 답변

MathWorks Support Team
MathWorks Support Team 2020년 4월 7일
The error you see when you try to set your runnable as a DataReceivedEvent is encountered because the function-call inside the runnable is expecting to be mapped to a step function that's defined in the scheduler block.
Runnable 'Runnable_Name' is mapped to a model Step Function. This runnable must be triggered by a TimingEvent.
One way to get around this issue is to convert this rate based model to an Export Function Model. You can do this by replacing the function-call generators with the inports at the root level and select the option to 'Output function call' in the signal attributes of these ports and replacing the RateTransition blocks with Inter-Runnable Variables. Note that you will need to do this for all runnables in your model.
Please see the following link for more details about export function modeling:

추가 답변 (0개)

카테고리

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

제품


릴리스

R2015b

Community Treasure Hunt

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

Start Hunting!

Translated by