- To createComponentAsModel: https://www.mathworks.com/help/autosar/ref/arxml.importer.createcomponentasmodel.html
- To variant source block: https://www.mathworks.com/help/simulink/slref/manualvariantsource.html
Variant handled port interfaces in ARXML
4 views (last 30 days)
Show older comments
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 ?
0 Comments
Answers (1)
Arun
on 27 Oct 2023
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:
Hope this helps.
0 Comments
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!