enter - Generate implicit event when state becomes active - MATLAB (original) (raw)
Main Content
enter, en
Generate implicit event when state becomes active
Syntax
Description
enter(`state_name`)
generates an implicit local event when the chart execution enters the state state_name
. If more than one state has the same name, use dot notation to specify the name of the state. For more information, see State Name.
en(`state_name`)
is an alternative way to execute enter(state_name)
.
Examples
Define an implicit local event when the chart execution enters the state Fan.On
.
Tips
The enter
operator is supported only in Stateflow® charts in Simulink® models.
Version History
Introduced before R2006a