MATLAB 帮助中心
向 AUTOSAR Classic 架构模型添加基础软件组件
bswBlock = addBSWService(archCM,bswKind)
bswBlock = addBSWService(archCM,bswKind) 向经典组合或架构模型 archCM 添加类型为 bswKind 的基础软件 (BSW) 服务组件模块。bswKind 的有效值为 'dem'(用于 Diagnostic Event Manager)和 'nvm'(用于 NVRAM Manager,不区分大小写)。archCM 参量是由先前调用 addComposition、autosar.arch.createModel 或 autosar.arch.loadModel 返回的组合或架构模型句柄。bswBlock 输出参量返回模块句柄。
bswBlock
archCM
bswKind
'dem'
'nvm'
addComposition
autosar.arch.createModel
autosar.arch.loadModel
示例
全部折叠
向 AUTOSAR 架构模型的顶层添加 NVRAM Service Component 和 Diagnostic Service Component 模块。
% Create AUTOSAR classic architecture model modelName = 'myArchModel'; archModel = autosar.arch.createModel(modelName); % Add components inside the architecture model addComponent(archModel,'Controller1'); actuator = addComponent(archModel,'Actuator'); set(actuator,'Kind','SensorActuator'); % Add Basic Software service component blocks addBSWService(archModel,'nvm'); addBSWService(archModel,'dem'); layout(archModel); % Auto-arrange layout
要向其添加 BSW 组件的 AUTOSAR 组合或架构模型。该参量是由先前调用 addComposition、autosar.arch.createModel 或 autosar.arch.loadModel 返回的经典组合或架构模型句柄。
示例: archModel
archModel
要添加到指定经典组合或架构模型的 AUTOSAR BSW 服务组件模块的类型。有效值为 'dem'(用于 Diagnostic Event Manager)和 'nvm'(用于 NVRAM Manager,不区分大小写)。
示例: 'dem'
返回 AUTOSAR BSW 模块句柄。
在 R2020a 中推出
Diagnostic Service Component | NVRAM Service Component | layout
layout
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
选择网站
选择网站以获取翻译的可用内容,以及查看当地活动和优惠。根据您的位置,我们建议您选择:。
您也可以从以下列表中选择网站:
如何获得最佳网站性能
选择中国网站(中文或英文)以获得最佳网站性能。其他 MathWorks 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
欧洲
亚太
联系您当地的办事处