LabVIEW 2009 Statechart Module Help
»View Product Info
You use the Statechart Editor window to edit a statechart. You can display the Statechart Editor window in one of the following ways:
- Double-click the Diagram.vi item in the Project Explorer window of the statechart.
- Right-click the Diagram.vi item and select Open from the shortcut menu.
- Right-click a Run Statechart function that links to the statechart and select View»Statechart Diagram from the shortcut menu.
The Statechart Editor window, which displays a statechart diagram, is similar to the LabVIEW window that displays a block diagram. In both of these windows, you can place objects from the Functions palette on the diagram, use the LabVIEW tools to manipulate objects, and connect objects together. However, the Statechart Editor window is different from the LabVIEW window in the following ways:
- You can place only Statechart Development objects on a statechart diagram. You cannot place LabVIEW VIs, functions, or structures directly on a statechart diagram. You also can use these functions in a guard or action.
- The LabVIEW block diagram window displays the Run button on the toolbar. The Statechart Editor window displays the Generate Code button on the toolbar. Clicking this button generates code for the statechart.
- The LabVIEW block diagram has a front panel window. The Statechart Editor window does not have a front panel window.
- On the LabVIEW block diagram, you use the wiring tool to create wires between VIs and functions. In the Statechart Editor window, you use the wiring tool to create transitions between states and other objects.
- The LabVIEW block diagram provides options for debugging VIs. The Statechart Editor window does not provide any debugging options. You debug statecharts by using a separate window that you can access while the statechart is running.
- The Statechart Editor window disables many LabVIEW pull-down menu items that do not apply to statecharts.