组件开发
R2026a创建 AUTOSAR Adaptive 软件组件的 Simulink® 表示后,请执行以下操作:
使用代码映射编辑器和 AUTOSAR 字典或等效的 AUTOSAR 编程接口来细化 AUTOSAR 配置。
使用各种基于 Simulink 模型的设计功能,在组件中开发算法内容。
如果您有 Simulink Coder™ 和 Embedded Coder® 软件,则可以生成 ARXML 描述和算法 C++ 代码,以便集成到 AUTOSAR Adaptive 运行时环境中,如生成 AUTOSAR Adaptive C++ 代码和 XML 描述中所述。
AUTOSAR 应用程序由互连的软件组件建模。每个软件组件都封装了汽车行为的一项功能实现,具有明确定义的连接点与外界相连。
使用代码映射编辑器和 AUTOSAR 字典开始细化和开发组件。代码映射编辑器提供组件的 Simulink 透视,您可以在其中有选择地将 Simulink 元素映射到 AUTOSAR 元素。AUTOSAR 字典提供组件的 AUTOSAR 透视,您可以在其中配置 AUTOSAR 元素及其属性。要快速入门,请参阅AUTOSAR 组件配置。
模块
![]() | Event Receive | 将输入事件转换为信号 |
![]() | Event Send | 将输入信号转换为事件 |
工具
| 代码映射编辑器 | 为代码生成映射 AUTOSAR 元素 |
函数
主题
- AUTOSAR 组件配置
配置 AUTOSAR 软件组件属性以及 Simulink 与 AUTOSAR 元素之间的映射。
- Configure AUTOSAR Adaptive Software Component Service Mappings
Use the Service Mappings editor to configure AUTOSAR Adaptive software component mappings.
- Configure AUTOSAR Adaptive Service Interface Properties
Use the Service Mappings editor, Property Inspector, data dictionaries, and AUTOSAR Dictionary to configure AUTOSAR adaptive service interfaces and service specifications.
- Incrementally Update AUTOSAR Mapping After Model Changes
Incrementally auto-configure and map new Simulink elements in AUTOSAR model.
- Model AUTOSAR Adaptive Service Communication and Execution Behavior
Model AUTOSAR Adaptive software component service communication and execution behavior with service properties.
- 配置 AUTOSAR Adaptive 服务数据的内存分配
指定中间件是否为 AUTOSAR Adaptive 事件发送分配内存。
- Configure AUTOSAR Adaptive Service Instance Identifier
Configure service instance identifier for AUTOSAR adaptive service ports.
- Configure AUTOSAR Adaptive Service Interface Identifier
Configure service interface identifier for AUTOSAR adaptive service ports.
- Configure AUTOSAR Ports By Using Simulink Bus Ports
Model AUTOSAR ports by using Simulink In Bus Element and Out Bus Element blocks.
- Configure AUTOSAR Packages
Import or define element packages within hierarchical AUTOSAR package structure.
- AUTOSAR Blockset Checks
Model Advisor and Upgrade Advisor checks for AUTOSAR Blockset.

