主要内容

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

warning (default) | none | error
none

Simulink® software takes no action.

warning

Simulink software displays a warning.

error

Simulink 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 none for these types of models.

Recommended Settings

ApplicationSetting
DebuggingNo impact
TraceabilityNo impact
EfficiencyNo impact
Safety precautionerror

Programmatic Use

Parameter: InheritedTsInSrcMsg
Value: "none" | "warning" | 'error'
Default: "warning"

Version History

Introduced in R2006a