Check state activity in Stateflow
in(
returns 1
(state_name
)true
) if the state state_name
is active.
Otherwise, the operator returns 0 (false
).
To determine the state activity, a Stateflow® chart performs a localized search of the state hierarchy. The chart does not perform an exhaustive search for all states and does not stop after finding the first match. To improve the chances of finding a unique search result:
Use dot notation to qualify the name of the state.
Give states unique names.
Use states and boxes as enclosures to limit the scope of the path resolution search.
For more information, see Resolution of State Activity.