MATLAB 帮助中心
加载 AUTOSAR 架构模型
archModel = autosar.arch.loadModel(modelName)
archModel = autosar.arch.loadModel(modelName) 将 AUTOSAR 架构模型 modelName 加载到内存中,而不在编辑器中打开该模型。输出参量 archModel 返回模型句柄,该句柄是 autosar.arch.Model 对象。在将模型加载到内存后,您可以使用架构函数对其进行处理,或使用 open 函数在编辑器中打开该模型。使用 save 函数保存更改。
archModel
modelName
autosar.arch.Model
open
save
示例
全部折叠
将 AUTOSAR 架构模型加载到内存中而不在编辑器中打开该模型,并返回模型属性。
modelName = 'autosar_tpc_composition'; archModel = autosar.arch.loadModel(modelName)
archModel = Model with properties: Name: 'autosar_tpc_composition' SimulinkHandle: 153.1576 Components: [2×1 autosar.arch.Component] Compositions: [1×1 autosar.arch.Composition] ParameterComponent: [0×0 autosar.arch.ParameterComponent] Ports: [4×1 autosar.arch.ArchPort] Connectors: [7×1 autosar.arch.Connector] Interfaces: [1×9 Simulink.dictionary.archdata.internal.PortInterfaceWithCodeGenProps] Platform: 'Classic'
Copyright 2022 The MathWorks, Inc..
要加载到内存中的 AUTOSAR 架构模型的名称。
示例: 'myArchModel'
'myArchModel'
返回 AUTOSAR 架构模型句柄,该句柄是 autosar.arch.Model 对象。
在 R2020a 中推出
autosar.arch.createModel | close | open | save
autosar.arch.createModel
close
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 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
欧洲
亚太
联系您当地的办事处