![]() | Download Help (Windows Only) |
After you build a statechart, click the Generate Code button , which is located on the toolbar of the Statechart Editor window to generate the code that corresponds to the statechart. You then use a Run Statechart function to execute this code in a VI.
![]() |
Note If you add code to a previously empty guard or action, or if you delete all code from a guard or action, you must re-generate code for the statechart. If you modify an existing, non-empty guard or action, you do not need to re-generate code for the statechart. |
If this button appears broken , the statechart code has errors. Clicking this button displays the errors.
If this button appears dimmed , the generated code already is usable. You do not need to generate code for the statechart.
![]() |
Note You also can generate code for the statechart by right-clicking the .lvsc file in the Project Explorer window and selecting Generate Code from the shortcut menu. |
Helpful
Not Helpful