Main Content

Check safety-related solver settings for simulation time

Check ID: mathworks.hism.hisl_0040

Check solver settings in the model configuration that apply to simulation time and might impact safety.

Description

This check verifies that the model solver configuration parameters pertaining to simulation time are set optimally for generating code for a safety-related application.

Available with Simulink® Check™.

Results and Recommended Actions

ConditionRecommended Action

The solver setting to specify the start time for the simulation or generated code is set to a value other than 0.0.

In the Configuration Parameters dialog box, set Start time or set the parameter StartTime to 0.0.

The solver setting to specify the stop time for the simulation or generated code is set to a negative value or a positive value greater than the value of Application lifespan (days). By default, Application lifespan (days) is auto for models configured to use a data code interface. For models configured to use a service code interface, the default is inf. If you do not change this setting, a positive value for Stop time is valid.

In the Configuration Parameters dialog box, set Stop time or set the parameter StopTime to a positive value that is less than the value of Application lifespan (days).

Action Results

Clicking Modify Settings configures model diagnostic settings that apply to solvers and that can impact safety.

Capabilities and Limitations

  • Does not run on library models.

  • Does not allow exclusions of blocks or charts.

  • Analyzes content in masked subsystems.

See Also