Why do I get an error when importing a ARXML file in Simulink 7.9 (R2012a)?

14 次查看(过去 30 天)
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
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 个)

类别

Help CenterFile Exchange 中查找有关 Simulink Environment Customization 的更多信息

标签

尚未输入任何标签。

产品


版本

R2012a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by