How to programmatically update "Code Mappings - AUTOSAR SW Component "?
6 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Vishvam Rastogi
il 6 Ago 2021
Commentato: Vishvam Rastogi
il 9 Ago 2021
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.
0 Commenti
Risposta accettata
Gargi Patil
il 9 Ago 2021
Modificato: Gargi Patil
il 9 Ago 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:
set_param(model,'DefaultParameterBehavior','Tunable');
codeMappings = coder.mapping.utils.create(model);
outports = find(codeMappings, 'Outports');
setOutport(codeMappings,outports(1), property, valueToSet);
For further information, the documentations for coder.mapping.api.CodeMapping and AUTOSAR Programmatic Interfaces outline related functions.
Più risposte (0)
Vedere anche
Categorie
Scopri di più su AUTOSAR Blockset in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!