Main Content

AUTOSAR Blockset Checks

R2026b

MathWorks Automotive Advisory Board Checks

Use AUTOSAR Blockset Model Advisor and Upgrade Advisor checks to configure your model for AUTOSAR standard compatibility.

See Also

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

ConditionRecommended 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.

ParameterPossible ValuesValue After Applying FixTips and Dependencies

Automatically handle rate transition for data transfer

on

off

off

Parameter Periodic sample time constraint must be set to STIndependent. Parameter Treat each discrete rate as a separate task must be cleared.

Maximum SHORT-NAME length (Embedded Coder)

Integer value between 32 and 128, inclusive

128

The model must be configured for the AUTOSAR Classic Platform.

Single output/update function (Simulink Coder)

on

off

on

 

File packaging format (Embedded Coder)

Modular

Compact (with separate data files)

Compact

Modular

Code interface packaging (component) (Simulink Coder) must be set to Reusable function.

Default parameter behavior (Simulink Coder)

Inlined

Tunable

Inlined

Code interface packaging (component) (Simulink Coder) must be set to Reusable function.

Rate Transition block code (Embedded Coder)

Inline

Function

Inline

 

Invalid input data access in chart initialization

warning

error

none

warning

 

Model block Simulation mode

Normal

Accelerator

Software-in-the-loop (SIL)

Processor-in-the-loop (PIL)

Normal

For more information about configuring simulations modes for Model blocks, see Simulation with Model Blocks (Embedded Coder).

Support: complex numbers (Embedded Coder)

on

off

off

The model must be configured for the AUTOSAR Classic Platform.

Support: continuous time (Embedded Coder)

on

off

off

 

Support: non-finite numbers (Simulink Coder)

on

off

off

 

Support non-inlined S-functions (Embedded Coder)

on

off

off

 

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

ConditionRecommended 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 TypeConditionRecommended Action
PrelookupParameter ExtrapMethod is set to Clip.

Consider using AUTOSAR Blockset Prelookup block for better compatibility.

n-D Lookup TableParameter 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 PrelookupParameter 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

ConditionRecommended 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

ConditionRecommended 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.

See Also