Main Content


Specify value, data type, code generation options, other properties of parameter

For run-time calibration of AUTOSAR data, R2018b and R2019a introduced graphical mapping of model elements to AUTOSAR component parameters and variables. In the Code Mappings editor, you select a Simulink® model-workspace parameter or internal signal, state, or data store. You map the selected element to an AUTOSAR component parameter or variable and modify its AUTOSAR calibration attributes. If you currently model AUTOSAR parameters or variables by using AUTOSAR parameter or signal objects in the base workspace, consider migrating to the Code Mappings editor workflow. For more information, see Map AUTOSAR Elements for Code Generation.


With this class, you can create workspace objects for mapping internal global parameters to AUTOSAR memory sections. You can create an AUTOSAR4.Parameter object in the base MATLAB® workspace.

This class extends the Simulink.Parameter class. With parameter objects, you can specify the value of a parameter and other information about the parameter, such as its purpose, its dimensions, or its minimum and maximum values. Some Simulink products use this information, for example, to determine whether the parameter is tunable (see Tune and Experiment with Block Parameter Values).

Simulink performs range checking of parameter values. The software alerts you when the parameter object value lies outside a range that corresponds to its specified minimum and maximum values and data type. For more information, see the Simulink.Parameter reference page.


Create an AUTOSAR4.Parameter object by using the AUTOSAR4.Parameter function described below.


paramObj = AUTOSAR4.Parameter returns an AUTOSAR4.Parameter object with default property values.

Open the workspace object to view and modify its properties.

The Simulink.Parameter reference page describes the parameter attributes in detail. The AUTOSAR4.Parameter class extends the Simulink.Parameter class with the following additional selection for the Storage class attribute:

  • Global — Allows you to map internal global parameters to AUTOSAR memory sections. Selecting this storage class enables the custom attribute MemorySection.

    MemorySection allows you to explicitly select AUTOSAR memory section VAR, CAL, CONST, VOLATILE, or CONST_VOLATILE, or accept the Default.

Version History

Introduced in R2014a