Main Content

AUTOSAR Software Components

Configure component properties, map Simulink elements to AUTOSAR elements, configure element packages, apply modeling checks

An AUTOSAR application is modeled by interconnected software components. Each software component is a functional implementation of automotive behavior, with well-defined connection points to the outside world.

To develop an AUTOSAR software component in Simulink®, you create an initial representation of an AUTOSAR component as described in Component Creation. The resulting representation includes:

  • Simulink blocks, connections, and data that model AUTOSAR elements such as ports, runnables, inter-runnable variables, and parameters

  • Stored properties, defined in the AUTOSAR standard, for AUTOSAR elements in the software component

  • A mapping of Simulink elements to AUTOSAR elements

Use the Code Mappings editor and the AUTOSAR Dictionary to begin developing the component. The Code Mappings editor provides a Simulink perspective of the component in which you selectively map Simulink elements to AUTOSAR elements. The AUTOSAR Dictionary provides an AUTOSAR perspective of the component in which you configure AUTOSAR elements and their properties. To get started, see AUTOSAR Component Configuration.

Tools

Code Mappings EditorMap AUTOSAR elements for code generation

Objects

autosar.api.getSimulinkMappingMap Simulink elements to AUTOSAR elements
autosar.api.getAUTOSARPropertiesConfigure AUTOSAR software component elements and properties

Properties

AUTOSAR Element PropertiesProperties of AUTOSAR elements

Settings

AUTOSAR XML Options SettingsAUTOSAR software component XML Options

Functions

expand all

autosar.api.createCreate or update mapped AUTOSAR component model
autosar.api.deleteDelete AUTOSAR properties and mapping for Simulink model
autosar.api.syncModelUpdate Simulink to AUTOSAR mapping of model with Simulink modifications
autosar.api.validateModelValidate AUTOSAR properties and mapping of Simulink model
findFind AUTOSAR elements (Since R2023a)
autosar_ui_launchOpen AUTOSAR Dictionary dialog box
autosar_ui_closeClose AUTOSAR Dictionary dialog box
updateAUTOSARPropertiesUpdate model with ARXML definitions from AUTOSAR element packages
updateModelUpdate AUTOSAR model or architecture with ARXML changes

Topics

AUTOSAR Components

AUTOSAR Elements

AUTOSAR Packages