AUTOSAR parameters and variables support run-time tuning and monitoring of an AUTOSAR application with calibration and measurement tools. After you create a Simulink® model mapped to an AUTOSAR software component, you can use the Code Mappings editor or equivalent AUTOSAR map functions to configure code and calibration attributes for the following elements:
Model parameter or lookup table mapped to:
AUTOSAR constant memory
AUTOSAR internal calibration parameter
AUTOSAR port parameter
Signal, state, or data store mapped to:
AUTOSAR static memory
AUTOSAR per-instance memory
Model entry-point function mapped to AUTOSAR runnable
Internal data inside a model entry-point function
addSignal | Add Simulink block signal to AUTOSAR mapping |
getDataStore | Get AUTOSAR mapping information for Simulink data store |
getFunction | Get AUTOSAR mapping information for Simulink entry-point function |
getParameter | Get AUTOSAR mapping information for Simulink model workspace parameter |
getSignal | Get AUTOSAR mapping information for Simulink block signal |
getState | Get AUTOSAR mapping information for Simulink block state |
mapDataStore | Map Simulink data store to AUTOSAR variable |
mapFunction | Map Simulink entry-point function to AUTOSAR runnable and software address methods |
mapParameter | Map Simulink model workspace parameter to AUTOSAR component parameter |
mapSignal | Map Simulink block signal to AUTOSAR variable |
mapState | Map Simulink block state to AUTOSAR variable |
removeSignal | Remove Simulink block signal from AUTOSAR mapping |
Curve | Approximate one-dimensional function |
Curve Using Prelookup | Use previously calculated index and fraction values to accelerate approximation of one-dimensional function |
Map | Approximate two-dimensional function |
Map Using Prelookup | Use previously calculated index and fraction values to accelerate approximation of two-dimensional function |
Prelookup | Compute index and fraction for a Curve Using Prelookup or Map Using Prelookup block |
Map AUTOSAR Elements for Code Generation
Use Code Mappings editor to view and map AUTOSAR software component from Simulink perspective.
Configure Parameters and Signals for AUTOSAR Calibration and Measurement
Configure Simulink® model workspace parameters and signals for AUTOSAR run-time calibration and measurement.
Configure AUTOSAR Data for Measurement and Calibration
Define AUTOSAR data properties (SwDataDefProps
), including
SwCalibrationAccess
,
DisplayFormat
, and
SwAddrMethod
.
Configure Lookup Tables for AUTOSAR Measurement and Calibration
Implement AUTOSAR integrated and distributed lookups with Simulink.LookupTable
and Simulink.Breakpoint
objects.
Configure AUTOSAR Per-Instance Memory
Configure AUTOSAR per-instance memory (PIM) by using block signals, discrete states, or data store memory.
Configure AUTOSAR Static Memory
Configure AUTOSAR static memory by using block signals, discrete states, or data store memory.
Configure AUTOSAR Constant Memory
Configure AUTOSAR constant memory by using model workspace parameters.
Configure AUTOSAR Shared or Per-Instance Parameters
Configure AUTOSAR shared or per-instance parameters by using model workspace parameters.
Configure AUTOSAR Port Parameters for Communication with Parameter Component
Configure AUTOSAR parameter receiver component for port-based access to parameter data.