Why can I not convert my runnable from TimingEvent triggered to DatReceivedEvent triggered?
7 views (last 30 days)
Show older comments
MathWorks Support Team
on 7 Apr 2020
Answered: MathWorks Support Team
on 7 Apr 2020
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?
Accepted Answer
MathWorks Support Team
on 7 Apr 2020
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 Comments
More Answers (0)
See Also
Categories
Find more on AUTOSAR Blockset in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!