Main Content

Lookup Table Blocks

hisl_0033: Usage of Lookup Table blocks

ID: Titlehisl_0033: Usage of Lookup Table blocks
Description

To support robustness of generated code, when using the 1-D Lookup Table, 2-D Lookup Table, n-D Lookup Table, Prelookup, and Interpolation Using Prelookup blocks:

A

Clear block parameter Remove protection against out-of-range input in generated code in each 1-D Lookup Table, 2-D Lookup Table, n-D Lookup Table, or Prelookup block.

B

Clear block parameter Remove protection against out-of-range index in generated code in each Interpolation Using Prelookup block.

Note

If the lookup table inputs are not guaranteed to fall within the range of valid breakpoint values, exclusion of range-checking code may produce unexpected results.

RationaleA,B

Protect against out-of-range inputs or indices.

Model Advisor ChecksCheck usage of lookup table blocks (Simulink Check)
References
  • DO-331, Section MB.6.3.2.g 'Algorithms are accurate'

  • IEC 61508-3, Table A.3 (3) 'Language subset’
    IEC 61508-3, Table A.4 (3) 'Defensive programming’

  • IEC 62304, 5.5.3 - Software Unit acceptance criteria

  • ISO 26262-6, Table 1 (1b) 'Use of language subsets'
    ISO 26262-6, Table 1 (1d) 'Use of defensive implementation techniques'

  • EN 50128, Table A.4 (11) 'Language Subset'
    EN 50128, Table A.3 (1) 'Defensive Programming'

See Also

1-D Lookup Table

2-D Lookup Table

n-D Lookup Table

Prelookup

Last ChangedR2021a

hisl_0072: Usage of tunable parameters for referenced models

ID: Titlehisl_0072: Usage of tunable parameters for referenced models
Description

Use the Simulink.Parameter object to define tunable parameters. This applies to all tunable parameters that are meant to be shared via either the base workspace or Simulink data dictionaries. It does not apply to model arguments.

Notes

Simulink® ignores the storage class settings of parameters that are configured by using the Model Parameter Configuration dialog box for referenced models.

This guideline is applicable only when configuration parameter Default parameter behavior is set to Inlined.

RationalePrevent unintended loss of parameter tunability.
Model Advisor ChecksCheck for parameter tunability information ignored for referenced models
References
  • DO-331, Section MB.6.3.1.g – Algorithms are accurate

    DO-331, Section MB.6.3.2.g – Algorithms are accurate

  • IEC 61508-3, Table A.4 (3) 'Defensive Programming’

  • IEC 62304, 5.5.3 - Software Unit acceptance criteria

  • ISO 26262-6, Table 1 (1b) 'Use of language subsets'

    ISO 26262-6, Table 1 (1d) 'Use of defensive implementation techniques'

  • EN 50128, Table A.3 (1) 'Defensive Programming'

See Also

Create Tunable Calibration Parameter in the Generated Code (Simulink Coder)

Last ChangedR2021b