Variant handled port interfaces in ARXML

조회 수: 5 (최근 30일)
Dinesh Kathir Raj Mohan Kumar
Dinesh Kathir Raj Mohan Kumar 2022년 12월 2일
답변: Arun 2023년 10월 27일
In the bottom up AUTOSAR development approach, where the Simulink model is created first and ARXML is generated out of it with the AUTOSAR blockset - I am using a variant based model development where the subset of Input and output interfaces are used for one variant and another subset is used for another variant. Much like the example mentioned in - https://se.mathworks.com/help/autosar/ug/configure-autosar-variants-in-ports-and-runnables.html
The generated code works perfectly, no trace of other variant2 related implementation in variant1 code and vice versa
However, the ARXML file generated has the interfaces from both the variants and when the ARXML is imported into DaVinci tools, all the interfaces are visible irrespective of the variant selection. Is there any settings to be changed to generate a variant based ARXML ?

답변 (1개)

Arun
Arun 2023년 10월 27일
Hey Dinesh,
I understand that you want to generate a variant based ARXML file for your bottom up AUTOSAR development and you are using Variant Source blocks but are not able to generate variant based ARXML.
The model must be created by importing ARXML file containing component descriptions for Simulink to preserve the variation points.
If a model is not created by importing ARXML, then it will only contain variation point proxies which ensure correct code generation, as in your case.
Please refer the MATLAB documentation link for more information:
  1. To createComponentAsModel: https://www.mathworks.com/help/autosar/ref/arxml.importer.createcomponentasmodel.html
  2. To variant source block: https://www.mathworks.com/help/simulink/slref/manualvariantsource.html
Hope this helps.

카테고리

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

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by