- do the data types in the ARXML files correspond to the types that will be used in code generation ? *
Mapping Data Types when "configuring a model as an AUTOSAR component"
9 ビュー (過去 30 日間)
Hi, I have a question regarding the option of "configuring a model as an AUTOSAR component" in Simulink. My understanding is that in this process, the data types used in the constants /signals/etc of Simulink models should be mapped to AUTOSAR's data types, which are defined in the Generic Structure Template in a package called Primitive Types.
However, after configuring a Simulink model as an AUTOSAR component and generating its ARXML files in Simulink, I found that the ARXML files have data types defined in them other than those in the GenericStructure Template. For example, the ARXML files have an Int32 data type which is not in the GenericStructure template; the GenericStructure Template has an Integer data type. Note that the data types in the ARXML files are tagged as "Implementation-Data-Types".
Thus, if the process of "configuring a model as an AUTOSAR component" in Simulink maps the data types to comply with AUTOSAR's data types, why do the data types in the generated ARXML files not correspond to the data types in the GenericStructure template? Or , do the data types in the ARXML files correspond to the types that will be used in code generation ?
Thanks a lot
Jyotish Robin 2017 年 4 月 10 日
It looks like the Generic Structure Template is talking about the AUTOSAR metamodel and not about the ARXML or ASWC types.
The meta model is used to represent the various objects in AUTOSAR in UML. It can be used to store the objects so code and/or ARXML can be generated later. Simulink stores an AUTOSAR meta model under the hood (in the slx) and uses that to generate the mapping and ARXML.
In summary, Simulink won't be using the types described in the Generic Structure Template in a manner that is visible to the user.
In regards to this question:
Yes, the data types in the code will reflect the content in the ARXML and not the Generic Structure Template.
I hope you find the above information useful!