MATLAB 帮助中心
验证软件组合模块或 AUTOSAR 架构模型的 AUTOSAR 属性和映射
自 R2023b 起
validate(archObj)
validate(archObj) 验证由 argName 指定的组合或架构模型中包含的 AUTOSAR 属性和映射。
archObj
argName
示例
全部折叠
加载一个 AUTOSAR 组合或 AUTOSAR 架构模型。此示例使用 AUTOSAR 架构模型 autosar_tpc_composition,其中包含组合 Sensors。
autosar_tpc_composition
Sensors
openExample("autosar_tpc_composition"); archModel = autosar.arch.loadModel("autosar_tpc_composition");
验证架构模型。
validate(archModel);
验证架构模型中包含的组合 Sensors。
sensors = archModel.Compositions; validate(sensors);
如果组合或模型验证失败,则抛出错误。
Error using autosar.arch.Composition/validate Composition export failed because of the following errors: Caused by: Models ('autosar_tpc_actuator', 'autosar_tpc_composition') have inconsistent AUTOSAR schema version settings ('4.2', '4.1').
autosar.arch.Model
autosar.arch.Composition
组合或架构模型的名称,指定为 autosar.arch.Model 对象或 autosar.arch.Composition 对象。
示例: archModel.Compositions(1)
archModel.Compositions(1)
示例: myArchModel
myArchModel
在 R2023b 中推出
autosar.arch.createModel | autosar.arch.loadModel | addComposition
autosar.arch.createModel
autosar.arch.loadModel
addComposition
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 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
欧洲
亚太
联系您当地的办事处