AUTOSAR Blockset Checks
MathWorks Automotive Advisory Board Checks
Use AUTOSAR Blockset Model 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. | 
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 | 
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 CodeReplacementLibraryis set toNone. | Model configuration parameter CodeReplacementLibraryshould not be set
                                    toNone. | 
| Block Type | Condition | Recommended Action | 
|---|---|---|
| Prelookup | Parameter ExtrapMethodis set toClip. | Consider using AUTOSAR Blockset Prelookup block for better compatibility. | 
| n-D Lookup Table | Parameter NumberOfTableDimensionsis set
                                    to1and parameterExtrapMethodis set toClip. | Consider using AUTOSAR Blockset Curve block for better compatibility. | 
| Parameter NumberOfTableDimensionsis set
                                    to2and parameterExtrapMethodis set toClip. | Consider using AUTOSAR Blockset Map block for better compatibility. | |
| Interpolation Using Prelookup | Parameter NumberOfTableDimensionsis set
                                    to1and parameterExtrapMethodis set toClip. | Consider using AUTOSAR Blockset Curve Using Prelookup block for better compatibility. | 
| Parameter NumberOfTableDimensionsis set
                                    to2and parameterExtrapMethodis set toClip. | 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.