主要内容

架构开发

R2026b
在软件架构中开发和定义 AUTOSAR 软件组合和组件(需要 System Composer™)

AUTOSAR Blockset 软件支持 AUTOSAR Adaptive 平台和 Classic 平台的软件组合建模。AUTOSAR 架构模型为开发 AUTOSAR 组合和组件模型提供资源和画布。在架构模型中,您可以:

    • 通过创建、导入或链接 Simulink® 模型定义组件行为。

    • 使用 Simulink 数据字典定义和共享接口、数据类型和常量。

    • 配置调度和仿真。

    • 通过细化软件组件服务接口和算法模型内容来设计 AUTOSAR Adaptive 软件组件。(AUTOSAR Adaptive 平台)

    • 添加基础软件 (BSW) 服务调用和服务实现。(AUTOSAR Classic 平台)

    • 添加并配置 AUTOSAR 参数组件和参数端口。(AUTOSAR Classic 平台)

工具

架构数据编辑器Manage Architectural Data section of Simulink data dictionaries (自 R2023b 起)
代码映射编辑器为代码生成映射 AUTOSAR 元素
接口编辑器在本地和共享数据字典中创建和编写接口
服务映射编辑器Map model elements to service interface definitions (自 R2026b 起)

模块

Adaptive Component blockAdaptive Component在 AUTOSAR 架构模型中进行自适应软件组件建模 (自 R2023a 起)
Classic Component blockClassic Component在 AUTOSAR 架构模型中对经典软件组件进行建模
Software Composition blockSoftware Composition在 AUTOSAR 架构模型中进行软件组合建模
Diagnostic Service Component blockDiagnostic Service ComponentConfigure AUTOSAR Diagnostic Services and Runtime Environment (RTE) for emulation
NVRAM Service Component blockNVRAM Service Component配置 AUTOSAR NVRAM 服务和运行时环境 (RTE) 以进行模拟
Adapter blockAdapter连接具有不同接口的组件
Variant Component blockVariant ComponentConditional variations of AUTOSAR architecture models (自 R2025a 起)

对象

Simulink.dictionary.ArchitecturalData以编程方式编辑 Simulink 数据字典中的架构数据 (自 R2023b 起)
autosar.dictionary.ARClassicPlatformMapping管理映射到 AUTOSAR Classic 平台的数据字典中元素的特定于平台的属性 (自 R2022b 起)
autosar.arch.ModelAUTOSAR architecture model
autosar.arch.CompositionAUTOSAR software composition in architecture model
autosar.arch.ComponentAUTOSAR software component in architecture model
autosar.arch.CompPortAUTOSAR component or composition port in architecture model
autosar.arch.ConnectorConnection between ports in AUTOSAR architecture model
autosar.arch.ParameterComponentAUTOSAR software parameter component (自 R2025a 起)
autosar.arch.ParameterPortAUTOSAR software parameter component port (自 R2025a 起)

函数

open打开 AUTOSAR 架构模型
findFind AUTOSAR architecture, composition, component, parameter component and elements
get获取 AUTOSAR 架构元素的属性
getArchPortGet architecture port corresponding to component or composition port
getXmlOptions获取 AUTOSAR 架构模型的 XML 选项
getPlatformProperty从数据字典获取 AUTOSAR 平台属性 (自 R2022b 起)
setPlatformPropertySet AUTOSAR properties for data interface or element in data dictionary (自 R2022b 起)
getPlatformPropertiesGet AUTOSAR platform properties from data dictionary (自 R2022b 起)
connectConnect AUTOSAR architecture components and compositions
layout基于启发式方法排列 AUTOSAR 组合或架构模型布局
set设置 AUTOSAR 架构元素的属性
linkDictionary将数据字典链接到 AUTOSAR 架构模型 (自 R2023a 起)
setInterfaceAssign port interface to AUTOSAR component, composition, or architecture port
setPlatform将架构模型的平台类型设置为 Classic 或 Adaptive (自 R2023a 起)
setXmlOptions为 AUTOSAR 架构模型设置 XML 选项

主题

组合和组件开发

架构数据管理

仿真

精选示例