| Stateflow User's Guide | ![]() |
Entering Truth Table Actions
During execution of the truth table, decisions are tested in left to right order. When a decision is realized during execution of the truth table, the action in the Action Table specified in the Actions row for that decision column is executed and the truth table is exited.
In Entering Truth Table Decisions you enter decisions in the truth table editor. The next step is to enter the actions you want to occur for each decision in the Action Table. Later, you assign these actions to their decisions in the Actions row of the Condition Table.
:). Later, you enter these labels in the Actions row of the Condition Table to specify an action for each decision column. Like condition labels, action labels must begin with an alphabetic character ([a-z][A-Z]) followed by any number of alphanumeric characters ([a-z][A-Z][0-9]) or an underscore (_).
t=1, sets the value of the return value t. You can also specify actions with data defined for a parent object of the truth table, including the Stateflow diagram. Truth table actions can also broadcast or send events that are defined for the truth table, or for a parent, such as the diagram (chart) itself.
If you omit the semicolon at the end of an action, the result of the action is echoed to the MATLAB window when it is executed during simulation. Use this as a debugging tool.
| Entering Truth Table Decisions | Assigning Truth Table Actions to Decisions | ![]() |
© 1994-2005 The MathWorks, Inc.