Main Content

Check safety-related optimization settings for application lifespan

mathworks.hism.hisl_0048

Dependencies: Simulink® Check™

Usage: High-Integrity System Modeling

Guideline: hisl_0048: Configuration Parameters > Math and Data Types > Application lifespan (days)

Description

This check verifies that the model optimization configuration parameter for application lifespan is set optimally for generating code for a safety-related application. Although highly optimized code is desirable for most real-time systems, some optimizations can have undesirable side effects that impact safety.

Recommended Actions and Results

Review the violations that are flagged by the check and the recommended action for fixing the issue. After applying the changes, save the model and rerun the check analysis.

If you consider the flagged violation to either not be relevant or not feasible for your design, use the Justify button to provide rationale as to why the violation is either not relevant or not feasible for your design.

You can use the Fix button to allow the Model Advisor to fix all flagged violations. For this check, the Model Advisor configures model code generation settings that can impact safety.

Modeling ConditionRecommended Action
The model includes blocks that depend on elapsed or absolute time and is configured to minimize the amount of memory allocated for the timers. Such a configuration limits the number of days the application can execute before a timer overflow occurs. Many aerospace products are powered on continuously and timers should not assume a limited lifespan. Set model configuration parameter Application lifespan (days) to inf or set the parameter LifeSpan to 'inf'.

Capabilities and Limitations

  • Does not require model compilation

  • Does not run on library models

  • Does not allow exclusions of blocks or charts

Version History

Introduced in R2020a