Stateflow | ![]() ![]() |
Code Generation Error Messages
Typical code generation error messages include the following:
"Transition <number> has a condition action which is preceded by a transition <number> containing a transition action. This is not allowed as it results in out-of-order execution, i.e., the condition action of <number> gets executed before the transition action of <number>."
Because condition actions are evaluated when their guarding condition is true and transition actions are evaluated when the transition is actually taken, condition action a2
is executed prior to transition action a1
. This violates the apparent graphical sequence of executing a1
then a2
. In this case, the preceding diagram is flagged for an error during build time. As a remedy, the user can change a1
and a2
to be both condition or transition actions.
![]() | Parser Error Messages | Compilation Error Messages | ![]() |