组件开发
创建 AUTOSAR Adaptive 软件组件的 Simulink® 表示后,请执行以下操作:
使用代码映射编辑器和 AUTOSAR 字典或等效的 AUTOSAR 编程接口来细化 AUTOSAR 配置。
使用各种基于 Simulink 模型的设计功能,在组件中开发算法内容。
如果您有 Simulink Coder™ 和 Embedded Coder® 软件,则可以生成 ARXML 描述和算法 C++ 代码,以便集成到 AUTOSAR Adaptive 运行时环境中,如Generate AUTOSAR Adaptive C++ Code and XML Descriptions中所述。
AUTOSAR 应用程序由互连的软件组件建模。每个软件组件都封装了汽车行为的一项功能实现,具有明确定义的连接点与外界相连。
使用代码映射编辑器和 AUTOSAR 字典开始细化和开发组件。代码映射编辑器提供组件的 Simulink 透视,您可以在其中有选择地将 Simulink 元素映射到 AUTOSAR 元素。AUTOSAR 字典提供组件的 AUTOSAR 透视,您可以在其中配置 AUTOSAR 元素及其属性。要快速入门,请参阅AUTOSAR 组件配置。
模块
Event Receive | Convert input event to signal |
Event Send | Convert input signal to event |
工具
代码映射编辑器 | Map AUTOSAR elements for code generation |
函数
主题
- AUTOSAR 组件配置
配置 AUTOSAR 软件组件属性以及 Simulink 与 AUTOSAR 元素之间的映射。
- Map AUTOSAR Adaptive Elements for Code Generation
Use Code Mappings editor to view and map AUTOSAR adaptive software component from Simulink perspective.
- Configure AUTOSAR Adaptive Elements and Properties
Use AUTOSAR Dictionary to view and configure AUTOSAR adaptive software component elements and properties.
- Incrementally Update AUTOSAR Mapping After Model Changes
Incrementally auto-configure and map new Simulink elements in AUTOSAR model.
- Configure AUTOSAR Adaptive Software Components
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.
- Configure Memory Allocation for AUTOSAR Adaptive Service Data
Specify whether middleware allocates memory for AUTOSAR adaptive event sends.
- 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.
- Model AUTOSAR Adaptive Persistent Memory
Model AUTOSAR port-based access to ECU nonvolatile memory.
- 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 checks for AUTOSAR Blockset.