- https://www.mathworks.com/help/autosar/ref/arxml.importer.html
- https://www.mathworks.com/help/autosar/ug/example-import-autosar-component-to-simulink.html
How to import the arxml created from the Autosar Davinci developer into the Matlab .
22 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Created the Swc Arxml from the Davinci Developer
1.We have created the Cdd from Davinci developer version (4.9.51 ),and want to import the Cdd i.e .arxml file into the Matlab version (2022 b)
2.We used the following command to import the cdd "archModel =autosar.arch.createModel("myArchModel"); "
3.While importing the arxml we got these errors
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1689527/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1689532/image.png)
Created the Swc Arxml from the Matlab
1.We also created the Software component into the Matlab through the autosar blockset ,and generated the code i.e .c .h and arxml file .
2. Tried to Import the arxml through the command "archModel =autosar.arch.createModel("myArchModel"); "
3.While importing we faced the following errors .
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1689537/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1689542/image.png)
0 comentarios
Respuestas (1)
Ashutosh Thakur
el 18 de Jun. de 2024
Hi Manjiri,
I would suggest you to use arxml.importer API in MATLAB to import the ARXML file into Simulink components. The following sample code can be leveraged to know how to use arxml.importer API:
ar = arxml.importer('mySample.arxml')
createComponentAsModel(ar,'/pkg/swc','ModelPeriodicRunnablesAs','AtomicSubsystem')
Following documentation link can provide more information on importing ARXML files into Simulink Model:
I hope this helps you.
0 comentarios
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!