AUTOSAR ARXML Importer
The AUTOSAR ARXML importer imports AUTOSAR description files produced by an AUTOSAR authoring tool (AAT) into a Simulink® model. The importer first parses ARXML code that describes AUTOSAR software components, compositions, or packages of predefined elements for component sharing. Then, based on commands that you issue, the importer imports a subset of the elements and objects in the ARXML description into Simulink. The subset consists of AUTOSAR elements relevant for Simulink model-based design of an automotive application. For example, for an imported component, the subset includes AUTOSAR ports, interfaces, data types, aspects of internal behavior, and packages.
For imported software components, the importer creates an initial Simulink representation of each component, with an initial, default mapping of Simulink model elements to AUTOSAR component elements. The initial representation provides a starting point for further AUTOSAR configuration and model-based design.
As part of the import operation, the importer validates the XML in the imported ARXML files. If XML validation fails for a file, the importer displays errors. For example:
Error The IsService attribute is undefined for interface /mtest_pkg/mtest_if/In1 in file hArxmlFileErrorMissingIsService_SR_3p2.arxml:48. Specify the IsService attribute to be either true or false
In this example message, the file name is a hyperlink, and you can click the hyperlink to see the location of the error in the ARXML file.
To help support the round trip of AUTOSAR elements between an AAT and the Simulink model-based design environment, Embedded Coder®:
Preserves imported AUTOSAR XML file structure, elements, and element universal unique identifiers (UUIDs) for ARXML export. For more information, see Round-Trip Preservation of AUTOSAR XML File Structure and Element Information.
Provides the ability to update an AUTOSAR model based on changes found in imported ARXML files. For more information, see Update AUTOSAR Software Component.
The AUTOSAR ARXML importer is implemented as an arxml.importer
object.
For a complete list of functions, see the arxml.importer
object reference page.
Related Examples
- Import AUTOSAR XML Descriptions Into Simulink
- Import AUTOSAR Component to Simulink
- Import AUTOSAR Composition to Simulink
- Update AUTOSAR Software Component
- Import and Reference Shared AUTOSAR Element Definitions
- Import AUTOSAR Package into Component Model
- Configure AUTOSAR XML Options
- Import AUTOSAR Adaptive Software Descriptions
- Import AUTOSAR Adaptive Components to Simulink
- Import AUTOSAR Package into Adaptive Component Model
- Configure AUTOSAR Adaptive XML Options