How to migrate from AUTOSAR data objects workflow to code mapping workflow?

I am using AUTOSAR data object such as AUTOSAR.Signal, and AUTOSAR.Parameter in my projects. The documentation page for these objects recommends migrating to the Code Mappings editor workflow. However, I am not sure what exactly I should do for each of these objects. Could you provide more guidance?

 Accepted Answer

If you currently model AUTOSAR parameters or variables by using AUTOSAR parameter or signal objects in the base workspace or data dictionary, consider migrating to the Code Mappings editor workflow. The following tables are intended to help you identify what exact path to follow during this migration.
The left column shows the options of the AUTOSAR data objects. The right column shows the corresponding option in the code mapping workflow when using Simulink Data Objects. The entries marked as NA are cases where there is no corresponding code mapping workflow.
For more information on the code mapping workflow please see the following documentation:

AUTOSAR.Parameter

Code Mapping

ExportedGlobal
Simulink.Parameter in model workspace mapped to ConstantMemory
CalParam
Simulink.Parameter in model workspace, marked as argument, and mapped to Port Parameter.
Note: When Port Parameter workflow is implemented using Simulink.Parameter, we cannot export corresponding Provider Port Name to parameter software component in generated ARXML.
InternalCalParam with PerInstanceBehavior set to “Parameter shared by all instances of the Software Component”
InternalCalParam with PerInstanceBehavior set to “Each instance of the SoftwareComponent has its own copy of the parameter”
SystemConstant
 

AUTOSAR.Signal

Code Mapping

ExportedGlobal
Signal, data store, or discrete state mapped to StaticMemory.
Note: Static-memory code generation for signals and data stores in referenced models is not supported.
PerInstanceMemory with IsArTypedPerInstanceMemory checked
PerInstanceMemory with IsArTypedPerInstanceMemory unchecked
No direct individual-element Code Mapping equivalent.
Note: Clearing IsArTypedPerInstanceMemory produces C-typed PIM in the legacy workflow. R2026b supports CTypedPerInstanceMemory through setInternalDataPackaging for multi-instance models configured with Code interface packaging = Reusable function. This configures default internal-data packaging into structures; it does not reproduce an individually mapped legacy PIM object.

More Answers (0)

Products

Community Treasure Hunt

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

Start Hunting!