Main Content

Sample hit time adjusting


Select the diagnostic action to take if Simulink® software makes a minor adjustment to a sample hit time while running the model.

Category: Diagnostics


Default: none


Simulink software takes no action.


Simulink software displays a warning.


  • Simulink software might change a sample hit time if that hit time is close to the hit time for another task. If Simulink software considers the difference to be due only to numerical errors (for example, precision issues or roundoff errors), it changes the sample hits of the faster task or tasks to exactly match the time of the slowest task that has that hit.

  • Over time, these sample hit changes might cause a discrepancy between the numerical simulation results and the actual theoretical results.

  • When this option is set to warning, the MATLAB® Command Window displays a warning like the following when Simulink software detects a change in the sample hit time:

    Warning: Timing engine warning: Changing the hit time for ...

Command-Line Information

Parameter: TimeAdjustmentMsg
Value: 'none' | 'warning'
Default: 'none'

Recommended Settings

DebuggingNo impact
TraceabilityNo impact
EfficiencyNo impact
Safety precautionNo impact

Related Topics