Main Content

Self transition on leaf state

Diagnostic action to take when a self transition on a leaf state is detected

Model Configuration Pane: Diagnostics

Description

The Self transition on leaf state parameter specifies the diagnostic action to take when you can remove a self-transition on a leaf state. Some self-transitions with no actions in the leaf state or on the self-transition have no effect on chart execution. Removing these transitions simplifies the state diagram.

Settings

warning (default) | none | error

Default: warning

none

No warning or error appears.

warning

A warning appears.

error

An error appears and stops the simulation.

Recommended Settings

ApplicationSetting
Debuggingerror
Traceabilityerror
Efficiency

No impact

Safety precautionerror

Programmatic Use

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

Version History

Introduced in R2016b