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

조회 수: 9 (최근 30일)
Vishvam Rastogi
Vishvam Rastogi 2021년 8월 6일
댓글: Y 2025년 6월 12일
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
Gargi Patil 2021년 8월 9일
편집: Gargi Patil 2021년 8월 9일
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.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 AUTOSAR Blockset에 대해 자세히 알아보기

제품


릴리스

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by