After you build a statechart, click the Generate Code button
, which is located on the toolbar of the Statechart Editor window. This action generates LabVIEW code that corresponds to the statechart. You then use a Run Statechart function to execute this code in a VI.
If this button appears broken
, the statechart code has errors. Clicking this button displays the errors.
If this button appears dimmed
, the generated LabVIEW code already is usable. You do not need to generate code for the statechart.