Matlab使用importFromARXML这个命令报出
问题一:
importFromARXML(archModel,'MyModel_swc.arxml','/Pack/Composition','DataDictionary','Model_zrch.sldd','ModelPeriodicRunnablesAs','FunctionCallSubsystem','ComponentModels',modellist)
Specified model 'Mymodel_1' is mapped to software component '/Pack/Composition', which is not part of the
specified composition '/Pack/Mymodel_1' arxml.
原因是:
这个conponent不是该Composition的一个子对象
解决方法:
是将AAA模块从你的指定Component删除。重新创建也可解决问题,不要使用引用的那个模型。
问题二:
Error using autosar.arch.Model/importFromARXML
Specifying virtuality of bus element 'OPP_Info_10ms_CH_Group' in port OPP_Info_10ms_CH_Group of 'EpsInput' is not supported
because it is not a bus defined by a bus object.
这个不能设置初始值可删除:初始值