Azzera filtri
Azzera filtri

How to import MATLAB generated ARXML file.

18 visualizzazioni (ultimi 30 giorni)
Varun Singh
Varun Singh il 14 Mag 2024
Modificato: Jinal il 15 Mag 2024
Hello,
I have created a SIMULINK model using AUTOSAR architecture blockset and generated ARXML code from it.
I need to import same model using import commands but it is throughing errors. Is it possible to do so?
If yes what is the correct process and commands required.
Regards,
Varun Singh

Risposte (1)

Jinal
Jinal il 15 Mag 2024
Modificato: Jinal il 15 Mag 2024
Hi Varun,
You can use the "arxml.importer" functions to import AUTOSAR software components, compositions or packages from the generated ARXML file into Simulink.
First, you can parse the ARXML code by passing the ARXML filename to "arxml.importer" function. Then, using the functions provided by the returned object, you can import an AUTOSAR component or composition into Simulink.
A sample code for creating an "arxml.importer" object and then using it to import an AUTOSAR software component is given below:
ar = arxml.importer('mycomponent.arxml');
% get list of components present in the arxml file
names = getComponentNames(ar);
% import a software component and create an initial Simulink representation of the component.
createComponentAsModel(ar, '/component/path','sampleComponent','mySubsystem');
To know more you can refer to the following documentation.

Categorie

Scopri di più su AUTOSAR Blockset in Help Center e File Exchange

Prodotti


Release

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by