主要内容

hisl_0075: Usage of library links

R2026b

Avoid disabled and parameterized library links for consistent simulation and code generation

Since R2022a

Usage: High-Integrity System Modeling

Guideline ID: hisl_0075

Rules

hisl_0075: Usage of library links

To maintain a consistent behavior between the simulation and generated code, avoid Disabled library links and Parameterized library links in the model.

Rationale

To avoid unintended simulation results.

Verification

Check for disabled and parameterized library links (Simulink Check)

Example — Correct

Use masked library links to change parameter values inside library blocks instead of creating parameterized library links.

Simulink model with two library-linked subsystems showing parameterized link badges

Changing the gain value on a masked parameter in the model does not create parameterized links.

Masked parameter dialogs showing different gain_value settings of 20 and 10 for each subsystem

Example — Incorrect

Changing the gain value using set_param in the command window causes a parameterized library link, which can cause unintended behavior.

Simulink model with two Constant-Subsystem-Display paths using library links

Parameterized Linked Block detail showing Gain blocks set to 100 and 200 with broken link badges

Industry Standards

  • DO-331, Section MB.6.3.2.b 'Low-level requirements are accurate and consistent'

  • DO-331, Section MB.6.3.3.b 'Software architecture is consistent'

  • IEC 61508-3, Table A.3 (3) 'Language subset'

  • IEC 62304, 5.5.3 - Software Unit acceptance criteria

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

  • ISO 26262-6, Table 1 (1f) 'Use of unambiguous graphical representation'

  • EN 50128, Table A.4 (11) 'Language Subset'

  • EN 50657, Table A.4 (11) 'Language Subset'

Version History

Introduced in R2022a

expand all