Main Content

Import AUTOSAR Adaptive Software Descriptions

You can import AUTOSAR XML (ARXML) descriptions of adaptive software components, service interfaces, and data types into Simulink®. Use the ARXML importer to:

  • Create an initial Simulink representation of an AUTOSAR adaptive software component.

  • Update a mapped AUTOSAR adaptive component model with shared ARXML definitions of service interfaces and data types.

You can participate in round-trip exchanges of adaptive component ARXML descriptions between Simulink and other development environments.

To create an initial Simulink representation of AUTOSAR adaptive software component from an ARXML component description, use the ARXML importer function createComponentAsModel. For example:

ar = arxml.importer('myAdaptiveSWC.arxml')
createComponentAsModel(ar,'/Company/Components/Swc')

For a detailed example, see Import AUTOSAR Adaptive Components to Simulink.

To update a mapped AUTOSAR adaptive component model with shared ARXML definitions, use the ARXML importer function updateAUTOSARProperties. For example:

modelName = 'my_adaptive_swc';
open_system(modelName);
ar = arxml.importer('ServiceInterfaces.arxml');
updateAUTOSARProperties(ar,modelName);

For a detailed example, see Import AUTOSAR Package into Adaptive Component Model.

See Also

|

Related Examples

More About