MATLAB 帮助中心
将架构模型的平台类型设置为 Classic 或 Adaptive
自 R2023a 起
setPlatform(archModel,platformKind)
setPlatform(archModel,platformKind) 将 AUTOSAR 架构模型 archModel 的平台设置为 platformKind。
archModel
platformKind
示例
全部折叠
使用默认设置创建一个 AUTOSAR 架构模型,读取平台,并将平台类型设置为 Adaptive。
创建 AUTOSAR 架构模型,并读取平台设置。
% Create AUTOSAR architecture model modelName = 'myArchModel'; archModel = autosar.arch.createModel(modelName); % Default platform kind is Classic % Read the default platform kind ptm = archModel.Platform
ptm = 'Classic'
为架构模型指定 AUTOSAR Adaptive 平台。
setPlatform(archModel,"Adaptive"); % Read the updated platform kind ptm = archModel.Platform
ptm = 'Adaptive'
AUTOSAR 架构模型,指定为由先前调用 autosar.arch.createModel 或 autosar.arch.loadModel 返回的模型句柄。
autosar.arch.createModel
autosar.arch.loadModel
AUTOSAR 平台类型,指定为字符向量或字符串标量。
设置“Adaptive”以指定 Adaptive 架构模型。设置“Classic”以指定经典架构模型。
Adaptive
Classic
不支持混合经典和自适应架构建模。
示例: 'Adaptive'
'Adaptive'
在 R2023a 中推出
autosar.arch.createModel | autosar.arch.loadModel
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 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
欧洲
亚太
联系您当地的办事处