AUTOSAR 软件组件
配置组件属性,将 Simulink 元素映射到 AUTOSAR 元素,配置元素包,应用建模检查
AUTOSAR 应用程序由互连的软件组件建模。每个软件组件都是汽车行为的一项功能实现,具有明确定义的连接点与外界相连。
要在 Simulink® 中开发 AUTOSAR 软件组件,您需要创建一个 AUTOSAR 组件的初始表示,如组件创建中所述。生成的表示包括:
用于对 AUTOSAR 元素(如端口、可运行实体、可运行实体间变量和参数)建模的 Simulink 模块、连接和数据
在 AUTOSAR 标准中为软件组件中的 AUTOSAR 元素定义的存储属性
Simulink 元素到 AUTOSAR 元素的映射
使用代码映射编辑器和 AUTOSAR 字典开始开发组件。代码映射编辑器提供组件的 Simulink 透视,您可以在其中有选择地将 Simulink 元素映射到 AUTOSAR 元素。AUTOSAR 字典提供组件的 AUTOSAR 透视,您可以在其中配置 AUTOSAR 元素及其属性。要快速入门,请参阅AUTOSAR 组件配置。
工具
代码映射编辑器 | Map AUTOSAR elements for code generation |
对象
autosar.api.getSimulinkMapping | 将 Simulink 元素映射到 AUTOSAR 元素 |
autosar.api.getAUTOSARProperties | 以编程方式配置 AUTOSAR 软件组件元素和属性 |
属性
AUTOSAR Element Properties | Properties of AUTOSAR elements |
设置
AUTOSAR XML Options
Settings | AUTOSAR software component XML Options |
函数
主题
AUTOSAR 组件
- Configure and Map AUTOSAR Component Programmatically
Call property and map functions to configure an AUTOSAR software component. - Map Calibration Data for Submodels Referenced from AUTOSAR Component Models
Use Code Mappings editor to view and map internal data for submodels referenced from AUTOSAR components. - Update AUTOSAR Software Component
Update AUTOSAR model with external changes to the ARXML description of the AUTOSAR software component or composition. - Update Architectural Data Section of Data Dictionary from ARXML
Import AUTOSAR architectural data updates from ARXML files into Simulink. - Incrementally Update AUTOSAR Mapping After Model Changes
Incrementally auto-configure and map new Simulink elements in AUTOSAR model. - Design and Simulate AUTOSAR Components and Generate Code
Develop AUTOSAR components by implementing behavior algorithms, simulating components and compositions, and generating component code. - AUTOSAR Blockset Checks
Model Advisor checks for AUTOSAR Blockset. - Limitations and Tips
Limitations that apply to AUTOSAR component development.
AUTOSAR 元素
- Configure AUTOSAR Elements and Properties
Use AUTOSAR Dictionary to view and configure AUTOSAR software component elements and properties. - Create, Import, and Configure AUTOSAR Computation Methods
Import or create computation methods to convert between internal values and physical representation of AUTOSAR data. - Map AUTOSAR Elements for Code Generation
Use Code Mappings editor to view and map AUTOSAR software component from Simulink perspective. - AUTOSAR 组件配置
配置 AUTOSAR 软件组件属性以及 Simulink 与 AUTOSAR 元素之间的映射。 - Import and Reference Shared AUTOSAR Element Definitions
Import AUTOSAR packages containing shared ARXML element definitions.
AUTOSAR 包
- Configure AUTOSAR Packages
Import or define element packages within hierarchical AUTOSAR package structure. - 为组件、接口、CompuMethod 或 SwAddrMethod 配置 AUTOSAR 包
在 AUTOSAR 字典的组件、接口、CompuMethod 或 SwAddrMethod 视图中输入包路径。