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.