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

8 vues (au cours des 30 derniers jours)
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?

Réponse acceptée

MathWorks Support Team
MathWorks Support Team le 7 Avr 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:

Plus de réponses (0)

Catégories

En savoir plus sur AUTOSAR Blockset dans Help Center et File Exchange

Produits


Version

R2015b

Community Treasure Hunt

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

Start Hunting!

Translated by