Mapping a Simulink function to AUTOSAR runnable

15 ビュー (過去 30 日間)
Kaloyan
Kaloyan 2023 年 10 月 19 日
回答済み: Jaynik 2023 年 10 月 27 日
I am trying to map a simulink function to an AUTOSAR runnable in order to use it as a stub during testing. My idea is to use this simulink function to output some stubbed values, when a call to the client-server interface is made inside my model.
I configured the AUTOSAR Client-Server communication and mapped the simulink function to an AUTOSAR runnable, but when I perform a check on the mappings I get the following error:
Mapping Simulink function 'function_name' to an AUTOSAR runnable is not supported for this model. To map a Simulink function to an AUTOSAR runnable, reconfigure the model to use top-model, export-function modeling style.
What setting should I change to make my model compatible with this configuration? I am not able to find anything in the model settings.

回答 (1 件)

Jaynik
Jaynik 2023 年 10 月 27 日
Hi Kaloyan,
I understand that you are trying to map a Simulink function to an AUTOSAR runnable are facing errors regarding reconfiguring the model.
To resolve this issue, you can try designating the model as an export function following these steps:
  1. Click the canvas to clear the selection from any blocks.
  2. Open the Property Inspector and go to the Execution tab.
  3. Select the Set execution domain parameter.
  4. From the Domain list, select Export function.
Additionally, it is important to ensure that the blocks used in your Simulink model are compatible with code generation. In some cases, the presence of incompatible blocks can also result in error.
You can read more about export functions here:
Can you share your model for further assistance.

カテゴリ

Help Center および File ExchangeAUTOSAR Blockset についてさらに検索

製品


リリース

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by