Mapping Simulink function to an AUTOSAR runnable is not supported for this model. To map a Simulink function to an AUTOSAR runnable,

조회 수: 9 (최근 30일)
Now i try to version up from 2018b to 2022b.
in that procedure, i try to code generation with 2022b autosar tlc.
but, i have some error that is 'Mapping Simulink function to an AUTOSAR runnable is not supported for this model. To map a Simulink function to an AUTOSAR runnable,'
the Simulink function occuring error is simulink function with global obtion checked.
please give me some answer to resolve that error

답변 (1개)

Atharva
Atharva 2023년 6월 21일
The error message you encountered suggests that mapping a Simulink function to an AUTOSAR runnable is not supported in your model. Specifically, it seems that you have a Simulink function with the global option checked, and this is causing the error.
To resolve this issue, you have a few options:
  1. Remove the Global option: If possible, try unchecking the Global option for the Simulink function causing the error. This will make the function local to the model and may allow you to map it to an AUTOSAR runnable.
  2. Refactor the Simulink Function: If you cannot remove the Global option, you can refactor your Simulink function to remove the global dependency. This may involve passing inputs and outputs explicitly between the function and other components in your model.
  3. Check AUTOSAR compatibility: Ensure that the AUTOSAR Target Compatibility Kit (TCK) for your version of Simulink is compatible with the 2022b version. Sometimes, certain features may not be supported in specific versions, and upgrading may require additional steps or changes in your model.
Can you share your model for further assistance.
  댓글 수: 1
hoa phan
hoa phan 2023년 6월 27일
Hi Atharva,
I have the same error as above question, but I cannot remove the Global option because my model is set to re-usable. (the Global option is required)
so how can I reconfigure the model to use top-model, export-function modeling style?

댓글을 달려면 로그인하십시오.

Community Treasure Hunt

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

Start Hunting!

Translated by