| Using Stateflow | Search  Help Desk |
Parsing
Parser
The parser evaluates the graphical and nongraphical objects in each Stateflow machine against the supported Stateflow notation and the action language syntax.Parse the Machine or the Stateflow Diagram
Explicitly parse each Stateflow diagram in the machine by choosing Parse from the graphics editor Tools menu. Explicitly parse the current Stateflow diagram by choosing Parse Diagram from the graphics editor Tools menu. The machine is implicitly parsed when you simulate a model, build a target, or generate code. In all cases, a pop-up information window is displayed when the parsing is complete. If the parsing is unsuccessful, one error at a time is displayed (in red) in the informational window. The Stateflow diagram automatically selects and pans to the object containing the parse error. Double-click on the error in the information window to bring the Stateflow diagram to the forefront, zoom (fit to view), and select the object containing the parse error. Press the space bar to zoom back out. Fix the error and reparse the Stateflow diagram. Informational messages are also displayed in the MATLAB command window. These steps describe parsing, assuming this Stateflow diagram.
.A in the upper left-hand corner is selected and this
message is displayed in the pop-up window and the MATLAB command
window.
.A. Edit the Stateflow
diagram and label the duplicate state with the text B.

.
.C. The Stateflow diagram should look similar to this.
.
.E_one [C_one].
.