How to programmatically update "Code Mappings - AUTOSAR SW Component "?

13 vues (au cours des 30 derniers jours)
Vishvam Rastogi
Vishvam Rastogi le 6 Août 2021
Commenté : Vishvam Rastogi le 9 Août 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.

Réponse acceptée

Gargi Patil
Gargi Patil le 9 Août 2021
Modifié(e) : Gargi Patil le 9 Août 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.
  1 commentaire
Vishvam Rastogi
Vishvam Rastogi le 9 Août 2021
Thanks for the information.
Below link mentions about modifying outport property in Code Mappings - AUTOSAR SW Component in detail.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur AUTOSAR Blockset dans Help Center et File Exchange

Produits


Version

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by