Source block specifies -1 sample time
Diagnostic action to take when a source block specifies a sample time of -1
Model Configuration Pane: Diagnostics / Sample Time
Description
The Source block specifies -1 sample time parameter specifies the diagnostic action to take if a source block (such as a Sine Wave block) specifies a sample time of -1.
Settings
noneSimulink® software takes no action.
warningSimulink software displays a warning.
errorSimulink software terminates the simulation and displays an error message.
Tips
The Random Source block does not obey this parameter. If its Sample time parameter is set to -1, the Random Source block inherits its sample time from its output port and never produces warnings or errors.
Some Communications Toolbox™ blocks internally inherit sample times, which can be a useful and valid modeling technique. Set this parameter to
nonefor these types of models.
Recommended Settings
| Application | Setting |
|---|---|
| Debugging | No impact |
| Traceability | No impact |
| Efficiency | No impact |
| Safety precaution | error |
Programmatic Use
Parameter: InheritedTsInSrcMsg |
Value: "none" | "warning" | 'error' |
Default: "warning" |
Version History
Introduced in R2006a