How to programmatically update "Code Mappings - AUTOSAR SW Component "?
5 views (last 30 days)
How I can update "Code Mappings - AUTOSAR SW Component " settings of an AUTOSAR component programmatically (using matlab scripts)?
My component have large number of outports and I want to automate the process of updating Code Mapping settings.
Gargi Patil on 9 Aug 2021
Edited: Gargi Patil on 9 Aug 2021
Outports and other model elements can be programmatically configured through the interface for code mappings.
You can refer to this linked documentation which provides code to configure outputs. Here is a sample code you can use:
codeMappings = coder.mapping.utils.create(model);
outports = find(codeMappings, 'Outports');
setOutport(codeMappings,outports(1), property, valueToSet);