change - Generate implicit event when data changes value in Stateflow chart - MATLAB (original) (raw)
Main Content
change, chg
Generate implicit event when data changes value in Stateflow chart
Syntax
Description
change(`data_name`)
generates an implicit local event when the chart sets the value of the variabledata_name
. If more than one data object has the same name, use dot notation to specify the name of the data object. For more information, seeIdentify Data by Using Dot Notation.
chg(`data_name`)
is an alternative way to execute change(data_name)
.
Examples
Define an implicit local event when a state or transition action writes a value to the variable Engine.rpm
.
Tips
- The
change
operator is supported only in Stateflow® charts in Simulink® models.
Version History
Introduced before R2006a