Enforce sample times specified by Signal Specification blocks
Diagnostic action to take when source and destination signals of Signal Specification block have mismatched sample times
Model Configuration Pane: Diagnostics / Sample Time
Description
The Enforce sample times specified by Signal Specification blocks parameter specifies the diagnostic action 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.
Settings
noneSimulink® software takes no action.
warningSimulink software displays a warning.
errorSimulink software terminates the simulation and displays an error message.
Note
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.
Tips
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.
Recommended Settings
| Application | Setting |
|---|---|
| Debugging | No impact |
| Traceability | No impact |
| Efficiency | No impact |
| Safety precaution | error |
Programmatic Use
Parameter: SigSpecEnsureSampleTimeMsg |
Value: "none" | "warning" | "error" |
Default: "warning" |
Version History
Introduced in R2006a