How can we control the generation of Application Data Types in the generated ARXML?

7 views (last 30 days)

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 10 Sep 2025
The user can affect the generation of Application Data Types in the generated ARXML, using the ImplementationDataTypeReference option from AUTOSAR dictionary:
The behavior of the generated ARXML for different settings is explained as below:
 
ImplementationDataTypeReference
                                         Behavior
                   NotAllowed
  • "NotAllowed” indicates that AUTOSAR elements are prohibited from directly referencing Implementation Data Types (IDTs) and must instead reference Application Data Types (ADTs).
  • “Not Allowed” will enforce the generation of ADTs in the ARXML for each AUTOSAR data type that does not already have a corresponding ADT.
  • AUTOSAR data types may have ADTs from imported ARXML files or previous builds. For these data types, the “NotAllowed” option will not generate new ADTs.
                        Allowed
  • “Allowed” means that AUTOSAR elements are permitted to directly reference Implementation Data Types (IDTs) without needing to use Application Data Types (ADTs).
  • For certain data types, such as Fixed-Point and Value Types, ADTs are always generated. Therefore, this option will not affect these data types. See the table in this doc page.
  • Changing the setting back to “Allowed” does not remove the ADTs and their corresponding mappings that already exist due to previous settings or ARXML imports.
  • Additional notes:
    • Setting the Implementation DataType Reference to “Not Allowed” or “Allowed” is a design choice that we provide. Generating the implementation data type alone may be sufficient for your needs. However, you may prefer to generate an ADT for every AUTOSAR data type based on your own requirements. There is no MathWorks recommended or preferred option for the ImplementationDataTypeReference parameter.
    • If you want fine control over which elements have ADTs, use Value types.

More Answers (0)

Categories

Find more on AUTOSAR Blockset 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!