架构开发
R2026b在软件架构中开发和定义 AUTOSAR 软件组合和组件(需要 System Composer™)
AUTOSAR Blockset 软件支持 AUTOSAR Adaptive 平台和 Classic 平台的软件组合建模。AUTOSAR 架构模型为开发 AUTOSAR 组合和组件模型提供资源和画布。在架构模型中,您可以:
通过创建、导入或链接 Simulink® 模型定义组件行为。
使用 Simulink 数据字典定义和共享接口、数据类型和常量。
配置调度和仿真。
通过细化软件组件服务接口和算法模型内容来设计 AUTOSAR Adaptive 软件组件。(AUTOSAR Adaptive 平台)
添加基础软件 (BSW) 服务调用和服务实现。(AUTOSAR Classic 平台)
添加并配置 AUTOSAR 参数组件和参数端口。(AUTOSAR Classic 平台)
工具
模块
![]() | Adaptive Component | 在 AUTOSAR 架构模型中进行自适应软件组件建模 (自 R2023a 起) |
![]() | Classic Component | 在 AUTOSAR 架构模型中对经典软件组件进行建模 |
![]() | Software Composition | 在 AUTOSAR 架构模型中进行软件组合建模 |
![]() | Diagnostic Service Component | Configure AUTOSAR Diagnostic Services and Runtime Environment (RTE) for emulation |
![]() | NVRAM Service Component | 配置 AUTOSAR NVRAM 服务和运行时环境 (RTE) 以进行模拟 |
| Adapter | 连接具有不同接口的组件 | |
![]() | Variant Component | Conditional variations of AUTOSAR architecture models (自 R2025a 起) |
对象
Simulink.dictionary.ArchitecturalData | 以编程方式编辑 Simulink 数据字典中的架构数据 (自 R2023b 起) |
autosar.dictionary.ARClassicPlatformMapping | 管理映射到 AUTOSAR Classic 平台的数据字典中元素的特定于平台的属性 (自 R2022b 起) |
autosar.arch.Model | AUTOSAR architecture model |
autosar.arch.Composition | AUTOSAR software composition in architecture model |
autosar.arch.Component | AUTOSAR software component in architecture model |
autosar.arch.CompPort | AUTOSAR component or composition port in architecture model |
autosar.arch.Connector | Connection between ports in AUTOSAR architecture model |
autosar.arch.ParameterComponent | AUTOSAR software parameter component (自 R2025a 起) |
autosar.arch.ParameterPort | AUTOSAR software parameter component port (自 R2025a 起) |
函数
open | 打开 AUTOSAR 架构模型 |
find | Find AUTOSAR architecture, composition, component, parameter component and elements |
get | 获取 AUTOSAR 架构元素的属性 |
getArchPort | Get architecture port corresponding to component or composition port |
getXmlOptions | 获取 AUTOSAR 架构模型的 XML 选项 |
getPlatformProperty | 从数据字典获取 AUTOSAR 平台属性 (自 R2022b 起) |
setPlatformProperty | Set AUTOSAR properties for data interface or element in data dictionary (自 R2022b 起) |
getPlatformProperties | Get AUTOSAR platform properties from data dictionary (自 R2022b 起) |
connect | Connect AUTOSAR architecture components and compositions |
layout | 基于启发式方法排列 AUTOSAR 组合或架构模型布局 |
set | 设置 AUTOSAR 架构元素的属性 |
linkDictionary | 将数据字典链接到 AUTOSAR 架构模型 (自 R2023a 起) |
setInterface | Assign port interface to AUTOSAR component, composition, or architecture port |
setPlatform | 将架构模型的平台类型设置为 Classic 或 Adaptive (自 R2023a 起) |
setXmlOptions | 为 AUTOSAR 架构模型设置 XML 选项 |
主题
组合和组件开发
- Define AUTOSAR Component Behavior by Creating or Linking Models
Add Simulink behavior to AUTOSAR components by creating, linking, or importing models. - Define AUTOSAR Compositions by Creating or Linking Models
Define AUTOSAR software compositions by creating, linking, or importing compositions as implementation models. - Configure AUTOSAR Architecture Model Programmatically
Call architecture functions to configure an AUTOSAR software architecture model. - Add and Connect Client-Server Ports in AUTOSAR Software Architectures
Configure client-server communication by using client server ports and Simulink data dictionaries in AUTOSAR software architectures (requires System Composer).
架构数据管理
- Manage AUTOSAR Architectural Data With Data Dictionaries
Manage architectural data in AUTOSAR models using the Architectural Data Editor. - Programmatically Manage AUTOSAR Architectural Data
This example shows how to programmatically manage shared data types, interfaces, constants, software address methods, and AUTOSAR C code generation properties by using the Architectural Data section of a Simulink® data dictionary. - 将 AUTOSAR 组件链接到需求
将实现需求的 AUTOSAR 组件链接到需求。 - Create Profiles, Stereotypes, and Views for AUTOSAR Architecture Analysis
To help analyze AUTOSAR architecture, create filtered views of model hierarchies.
仿真
- Configure AUTOSAR Classic Scheduling and Simulation
Schedule and simulate components in AUTOSAR architecture model.









