组件开发
R2026b创建 AUTOSAR Adaptive 软件组件的 Simulink® 表示后,请执行以下操作:
通过使用服务映射编辑器和属性检查器来细化 AUTOSAR 软件组件配置。
使用各种基于 Simulink 模型的设计功能,在组件中开发算法内容。
如果您有 Simulink Coder™ 和 Embedded Coder® 软件,您可以生成 ARXML 描述和算法 C++ 代码,以集成到生成 AUTOSAR Adaptive C++ 代码和 XML 描述中所述的 AUTOSAR Run-time for Adaptive Applications (ARA) 中。
AUTOSAR 应用程序由互连的软件组件建模。每个软件组件都封装了汽车行为的一项功能实现,具有明确定义的连接点与外界相连。
使用服务映射编辑器和 AUTOSAR 字典开始细化和开发组件。服务映射编辑器提供组件的 Simulink 透视,您可以在其中有选择地将 Simulink 元素映射到 AUTOSAR 元素。AUTOSAR 字典提供组件的 AUTOSAR 透视,您可以在其中配置 AUTOSAR 元素及其属性。要快速入门,请参阅AUTOSAR 组件配置。
工具
| 服务映射编辑器 | Map model elements to service interface definitions |
函数
主题
- Configure AUTOSAR Adaptive Software Components
Use AUTOSAR Component Quick Start to create an initial software component configuration. Customize the configuration by using the Service Mappings Editor and Property Inspector.
- 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.
- Configure AUTOSAR Adaptive Sender-Receiver Service Communication
In Simulink, AUTOSAR Adaptive software components have a software component service interface that defines what services a software component requires of its execution environment and how the component executes and communicates at run time.
- Configure AUTOSAR Adaptive Client-Server Service Communication
Method communication enables an AUTOSAR Adaptive software component to invoke a method provided by another software component.
- Configure AUTOSAR Adaptive XML Options
Configure AUTOSAR adaptive XML options for ARXML export.
- Configure C++ Namespaces for AUTOSAR Adaptive Interfaces and Data Types
For component models configured for the AUTOSAR Adaptive Platform, generate C++ code with individual C++ namespaces for architectural data types and export the individual C++ namespaces as namespace symbols in exported ARXML files.
- Configure AUTOSAR Adaptive Software Component Service Mappings
Use the Service Mappings editor to configure AUTOSAR Adaptive software component mappings.
- 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.