Why do I get an error when importing a ARXML file in Simulink 7.9 (R2012a)?
4 views (last 30 days)
Show older comments
MathWorks Support Team
on 19 Sep 2013
Answered: MathWorks Support Team
on 25 Oct 2013
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);
Accepted Answer
MathWorks Support Team
on 25 Oct 2013
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 Comments
More Answers (0)
See Also
Categories
Find more on Analog Devices ADALM1000 Support from Data Acquisition Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!