Main Content

Enforce sample times specified by Signal Specification blocks


Select the diagnostic action to take if the sample time of the source port of a signal specified by a Signal Specification block differs from the signal's destination port.

Category: Diagnostics


Default: warning


Simulink® software takes no action.


Simulink software displays a warning.


Simulink software terminates the simulation and displays an error message.


The setting of this diagnostic is ignored when the Default parameter behavior parameter in the Code Generation > Optimization pane of the model Configuration Parameters is set to Tunable.


  • The Signal Specification block allows you to specify the attributes of the signal connected to its input and output ports. If the specified attributes conflict with the attributes specified by the blocks connected to its ports, Simulink software displays an error when it compiles the model, for example, at the beginning of a simulation. If no conflict exists, Simulink software eliminates the Signal Specification block from the compiled model.

  • You can use the Signal Specification block to ensure that the actual attributes of a signal meet desired attributes, or to ensure correct propagation of signal attributes throughout a model.

Command-Line Information

Parameter: SigSpecEnsureSampleTimeMsg
Value: 'none' | 'warning' | 'error'
Default: 'warning'

Recommended Settings

DebuggingNo impact
TraceabilityNo impact
EfficiencyNo impact
Safety precautionerror

Related Topics