MATLAB: How to automatically interface mapping between AUTOSAR Component and model I/O ports

Embedded Coder

I'm generating an AUTOSAR component. My model has many I/O ports and I have to manually create an interface and map every I/O port to AUTOSAR component.
Is there an automatic way?

Best Answer

You can do that programatically by writing a script to get every inport and outport in the Simulink model and mapping it to the AUTOSAR component.
You can make use of the following functions in the documentation page: