Use AUTOSAR Blockset Model Advisor checks to configure your model for AUTOSAR standard compatibility.
Embedded Coder Checks (Embedded Coder)
Check ID:
mathworks.autosar.autosar_configset
Check configuration settings in the model configuration that apply to AUTOSAR compatibility.
Available with AUTOSAR Blockset.
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. |
Following are the model parameters the check examines, provided that AUTOSAR Compliance is set to on
by
using a proper license (TLC file).
Parameter | Recommended Values | Auto Fix | Condition Dependencies |
---|---|---|---|
AutoInsertRateTranBlk | off | off | STC = STIndependent && SolverMode = SingleTasking |
AutosarCompliant | On | On | |
AutosarMaxShortNameLength | range(32,128) | 128 | ~isAdaptiveAutosar |
CombineOutputUpdateFcns | on | on | |
ERTFilePackagingFormat | Modular | Modular | CodeInterfacePackaging = reusable function |
InlineParams | On | On | CodeInterfacePackaging = reusable function |
RateTransitionBlockCode | inline | inline | |
SFInvalidInputDataAccessInChartInitDiag | warning error | warning | |
SimulationMode | normal external SIL PIL | normal | |
SupportComplex | off | off | ~isAdaptiveAutosar |
SupportContinuousTime | off | off | |
SupportNonFinite | off | off | |
SupportNonInlinedSFcns | off | off |
Runs on library models.
Allows exclusions of blocks and charts.
Check ID:
mathworks.autosar.lut_replacement_check
Identifies Simulink® lookup table blocks that are incompatible with AUTOSAR Blockset Interpolation Routines.
Available with AUTOSAR Blockset.
Condition | Recommended Action |
---|---|
Model configuration parameter
CodeReplacementLibrary is set to
None . | Model configuration parameter
CodeReplacementLibrary should not be set
to None . |
BlockType | 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. | |
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. |
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.