How can I include the "<RESOURCE-CONSUMPTION>" memory section in the ARXML file generated from Simulink?
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
MathWorks Support Team
am 8 Feb. 2024
Beantwortet: MathWorks Support Team
am 17 Apr. 2024
I aim to include the details of the "<RESOURCE-CONSUMPTION>" section in the "ModelName_datatype.arxml" file generated from my Simulink model. This pertains to the addresses of software components (SWC) within Simulink. Additionally, for specific signals, I employ custom storage classes.
Is this possible? Could you please guide me on how to do this?
Akzeptierte Antwort
MathWorks Support Team
am 17 Apr. 2024
Including the "<RESOURCE-CONSUMPTION>" section is a new feature developed for MATLAB R2023b.
To workaround this issue for prior releases, you can follow the steps below:
1) List the custom storage classes in a file (i.e., Excel)
2) Write a script to automatically detect all the mapped "SwAddrMethods" in the model using "autosar. api.getAUTOSARProperties" (please refer to the attached script and customize it to your needs)
3) Post-process the generated ARXML file to add the tree hierarchy to the generated implementation ARXML using the "xmlread" and "xmlwrite" functions.
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu AUTOSAR Blockset finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!