AUTOSAR Blockset Checks
R2026bMathWorks Automotive Advisory Board Checks
Use AUTOSAR Blockset Model Advisor and Upgrade Advisor checks to configure your model for AUTOSAR standard compatibility.
See Also
Embedded Coder Checks (Embedded Coder)
Check model configuration parameters for AUTOSAR compliance
Check ID:
mathworks.autosar.autosar_configset
Description
Check configuration settings in the model configuration that apply to AUTOSAR compatibility.
Available with AUTOSAR Blockset.
Results and Recommended Actions
| Condition | Recommended Action |
|---|---|
| One or more of the model configuration parameters are not compatible with AUTOSAR. | Set the listed configuration parameters to the recommended values. Alternatively, you can automatically set the parameters by using the Auto-Fix option. |
This table lists the model parameters the check examines and the values that
the parameters are set to if an automatic fix is applied by the Model Check
Advisor. The model examined by Model Check Advisor must have configuration
parameter System target file (Simulink Coder) set to
autosar.tlc or
autosar_adaptive.tlc.
| Parameter | Possible Values | Value After Applying Fix | Tips and Dependencies |
|---|---|---|---|
|
| Parameter Periodic sample time
constraint must be set to
| |
Maximum SHORT-NAME length (Embedded Coder) | Integer value between 32 and 128, inclusive |
| The model must be configured for the AUTOSAR Classic Platform. |
Single output/update function (Simulink Coder) |
|
| |
File packaging format (Embedded Coder) |
|
| Code interface packaging
(component) (Simulink Coder) must be set to
|
Default parameter behavior (Simulink Coder) |
|
| Code interface packaging
(component) (Simulink Coder) must be set to
|
Rate Transition block code (Embedded Coder) |
|
| |
|
| ||
Model block Simulation mode |
|
| For more information about configuring simulations modes for Model blocks, see Simulation with Model Blocks (Embedded Coder). |
Support: complex numbers (Embedded Coder) |
|
| The model must be configured for the AUTOSAR Classic Platform. |
Support: continuous time (Embedded Coder) |
|
| |
Support: non-finite numbers (Simulink Coder) |
|
| |
Support non-inlined S-functions (Embedded Coder) |
|
|
Capabilities and Limitations
Runs on library models.
Allows exclusions of blocks and charts.
See Also
Check compatibility of AUTOSAR Interpolation Routines
Check ID:
mathworks.autosar.lut_replacement_check
Description
Identifies Simulink® lookup table blocks that are incompatible with AUTOSAR Blockset Interpolation Routines.
Available with AUTOSAR Blockset.
Results and Recommended Actions
| Condition | Recommended Action |
|---|---|
Model configuration parameter Code replacement
library (Simulink Coder) is set to
None. | Model configuration parameter Code replacement
library (Simulink Coder) must not be set to AUTOSAR
4.x. |
| Block Type | Condition | Recommended Action |
|---|---|---|
| Prelookup | Parameter ExtrapMethod is set to
Clip. | Consider using AUTOSAR Blockset Prelookup block for better compatibility. |
| n-D Lookup Table | Parameter NumberOfTableDimensions is set
to 1 and parameter
ExtrapMethod is set to
Clip. | Consider using AUTOSAR Blockset Curve block for better compatibility. |
Parameter NumberOfTableDimensions is set
to 2 and parameter
ExtrapMethod is set to
Clip. | Consider using AUTOSAR Blockset Map block for better compatibility. | |
Parameter NumberOfTableDimensions is set
to 3 and parameter
ExtrapMethod is set to
Clip. | Consider using AUTOSAR Blockset Cuboid Using Prelookup block for better compatibility. | |
| Interpolation Using Prelookup | Parameter NumberOfTableDimensions is set
to 1 and parameter
ExtrapMethod is set to
Clip. | Consider using AUTOSAR Blockset Curve Using Prelookup block for better compatibility. |
Parameter NumberOfTableDimensions is set
to 2 and parameter
ExtrapMethod is set to
Clip. | Consider using AUTOSAR Blockset Map Using Prelookup block for better compatibility. | |
Parameter NumberOfTableDimensions is set
to 3 and parameter
ExtrapMethod is set to
Clip. | Consider using AUTOSAR Blockset Cuboid Using Prelookup block for better compatibility. |
Capabilities and Limitations
Runs on library models.
Analyzes content of library-linked blocks. By default, the input parameter Follow links is set to
on.Analyzes content in masked subsystems. By default, the input parameter Look inside masks is set to
graphical.Allows exclusions of blocks and charts.
See Also
Upgrade AUTOSAR Adaptive model to current modeling style
Check ID:
mathworks.autosar.modelingStyleCheck
Description
Checks that the model is configured for the AUTOSAR Adaptive Platform and implements compatible modeling styles.
Available with AUTOSAR Blockset.
Results and Recommended Actions
| Condition | Recommended Action |
|---|---|
| Model is configured for the AUTOSAR Adaptive Platform and was created in a release before R2026b. | Upgrade your model to R2026b by using the Fix button or by
using the autosar.api.upgrade function. |
| Model is already configured for the AUTOSAR Adaptive Platform and is up-to-date. | No action required. |
Capabilities and Limitations
Applies only to models mapped to an AUTOSAR Adaptive software component.
Not all models configured for the AUTOSAR Adaptive Platform can be completely upgraded by the software. After the software finishes upgrading a model, review the model for any incomplete transformations. For more information, see Upgrade AUTOSAR Adaptive Models
See Also
Replace root ports with bus element ports in AUTOSAR Classic model
Check ID:
mathworks.autosar.convertible_ports_check
Description
Identify root-level ports that are mapped to AUTOSAR port elements, and automatically replace them with bus element ports in models configured for the AUTOSAR Classic Platform.
Available with AUTOSAR Blockset.
Results and Recommended Actions
| Condition | Recommended Action |
|---|---|
| Model contains root-level Inport or Outport blocks that can be replaced with bus element ports. | Replace root-level Inport or Outport blocks
with In Bus Element
and Out Bus Element
blocks by using the Fix button or by using the autosar.api.upgrade function. |
| Model is already using root-level bus element ports with valid AUTOSAR mappings. | No action required. |
| Model has an invalid AUTOSAR mapping. | Fix the invalid mappings before running this check. |
Capabilities and Limitations
Applies only to models mapped to an AUTOSAR Classic software component.
Does not apply to AUTOSAR architecture models or models mapped to an AUTOSAR Adaptive software component.