Main Content

AUTOSAR Blockset Checks

MathWorks Automotive Advisory Board Checks

Use AUTOSAR Blockset Model 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.

Following are the model parameters the check examines, provided that AUTOSAR Compliance is set to on by using a proper license (TLC file).

ParameterRecommended ValuesAuto FixCondition Dependencies
AutoInsertRateTranBlkoffoffSTC = STIndependent && SolverMode = SingleTasking
AutosarCompliantOnOn 
AutosarMaxShortNameLengthrange(32,128)128~isAdaptiveAutosar
CombineOutputUpdateFcnsonon 
ERTFilePackagingFormatModularModularCodeInterfacePackaging = reusable function
InlineParamsOnOnCodeInterfacePackaging = reusable function
RateTransitionBlockCodeinlineinline 
SFInvalidInputDataAccessInChartInitDiag

warning

error

warning 
SimulationMode

normal

external

SIL

PIL

normal 
SupportComplexoffoff~isAdaptiveAutosar
SupportContinuousTimeoffoff 
SupportNonFiniteoffoff 
SupportNonInlinedSFcnsoffoff 

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 CodeReplacementLibrary is set to None.Model configuration parameter CodeReplacementLibrary should not be set to None.
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.

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.

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 under masks is set to graphical.

  • Allows exclusions of blocks and charts.

See Also