Why do I get an error when importing a ARXML file in Simulink 7.9 (R2012a)?
14 次查看(过去 30 天)
显示 更早的评论
MathWorks Support Team
2013-10-25
回答: MathWorks Support Team
2013-10-25
When I import an ARXML file using ARXML.IMPORTER I recieve the following error:
Error using arxml.importer.p_add_data_type (line 259)
Implementation data type "UInt8" does not reference a base type.
Error in arxml.importer.p_add_data_type (line 71)
[ dataTypeId, allInfo] = arxml.importer.p_add_data_type(this, allInfo,
implDataTypeNode, compMethodRefList, applDataTypeName);
采纳的回答
MathWorks Support Team
2013-10-25
The reason you are seeing this error is that the type UInt8 is missing the following sub-tag in its SW-DATA-DEF-PROPS:
<BASE-TYPE-REF>
The type needs to reference a base type. For an example; load the autosar counter example by executing the following command in the MATLAB command window:
rtwdemo_autosar_counter
Then generate code for the model by pressing Ctrl + B. In the resulting ARXML code the rtwdemo_autosar_counter_datatype.arxml file contains type definitions with reference to base data types.
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Simulink Environment Customization 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!