- 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"
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Gehan Selim
am 24 Mär. 2017
Kommentiert: Gehan Selim
am 19 Mai 2017
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
0 Kommentare
Akzeptierte Antwort
Jyotish Robin
am 10 Apr. 2017
Hi Gehan!
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!
Regards,
Jyotish
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu AUTOSAR Blockset finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!