主要内容

Component Development

Develop AUTOSAR adaptive software components and service communication; use programmatic interfaces; apply modeling checks

After creating a Simulink®representation of an AUTOSAR adaptive software component:

  • 使用代码映射编辑器和AutoSAR字典或等效AutoAR编程接口来精制AutoSAR配置。

  • 使用基于Simulink模型的设计能力的广泛的基于Simulink模型的设计能力在组件中开发算法内容。金宝app

如果你有金宝appSimulink Coder™和嵌入式编码器®software, you can generate ARXML descriptions and algorithmic C++ code for integration into the AUTOSAR adaptive run-time environment, as described inGenerate AUTOSAR Adaptive C++ Code and XML Descriptions.

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

Use the Code Mappings editor and the AUTOSAR Dictionary to begin refining and 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, seeAUTOSAR Component Configuration.

Event Receive Convert input event to signal
Event Send Convert input signal to event

工具

Code Mappings Editor Map AUTOSAR elements for code generation

Functions

expand all

autosar.api.getSimulinkMapping Map金宝appelements to AUTOSAR elements
getDatastore. Get AUTOSAR mapping information for金宝app数据存储
得到Inport Get AUTOSAR mapping information for金宝appinport
得到Outport Get AUTOSAR mapping information for金宝appoutport
MapDataStore. Map金宝app数据存储到AutoSAR变量
mapInport Map金宝appinport到autosar端口
mapOutport Map金宝appoutport to AUTOSAR port
autosar.api.getautosarproperties. Configure AUTOSAR software component elements and properties
add Add property to AUTOSAR element
addPackageableElement Add element to AUTOSAR package in model
createEnumeration 创建金宝appenumeration data type definition to work with imported AUTOSAR element
createNumericType 创建金宝app数字数据类型定义与导入的AutoSAR元素一起使用
删除 Delete AUTOSAR element
deleteunmappedcomponents. 从模型中删除未映射的自动节组件
找到AutoSAR元素
得到 Get property of AUTOSAR element
set Set property of AUTOSAR element
autosar.api.create 创建or update mapped AUTOSAR component model
autosar.api.delete Delete AUTOSAR properties and mapping for金宝appmodel
autosar.api.syncModel 更新金宝app与模型的自动验证映射金宝app修改
autosar.api.validateModel Validate AUTOSAR properties and mapping of金宝appmodel
autosar_ui_launch Open AUTOSAR Dictionary dialog box
autosar_ui_close 关闭AutoSar Dictionary对话框

Topics

AUTOSAR Component Configuration

在Simulink和AutoSAR元素之间配置AutoSAR软件组件属性和映射。金宝app

映射代码生成的AutoSAR自适应元素

使用代码映射编辑器从Simulink透视图查看和映射AutoSAR Adaptive Software组件。金宝app

Configure AUTOSAR Adaptive Elements and Properties

使用AutoSAR字典查看和配置AutoSAR Adaptive软件组件元素和属性。

模型更改后递增更新AutoSAR映射

逐步自动配置和映射AutoSAR模型中的新Simulink元素。金宝app

配置AUTOSAR自适应软件组件

Configure a Simulink representation of an automotive algorithm as a software component for the AUTOSAR Adaptive Platform.

Model AUTOSAR Adaptive Service Communication

Send and receive AUTOSAR adaptive service events by using service communication.

配置AutoSAR自适应服务数据的内存分配

指定中间件是否为AutoSAR Adaptive事件发送的内存发送。

Configure AUTOSAR Adaptive Service Discovery Modes

Set the service discovery mode of required ports for AUTOSAR adaptive service communication.

Configure AUTOSAR Adaptive Service Instance Identification

Configure service instance identification for AUTOSAR adaptive service ports.

模型AutoSAR自适应持久存储器

模型基于AutOSAR端口的基于ECU非易失性存储器的访问。

Configure AUTOSAR Ports By Using Simulink Bus Ports

使用Simulink模型自动质子端口金宝appIn Bus ElementOut Bus Element块。

Configure AUTOSAR Packages

Import or define element packages within hierarchical AUTOSAR package structure.

AUTOSAR Blockset Checks

Describes Model Advisor checks forAUTOSAR Blockset.