Linking the Run Statechart Function to a Statechart (Statechart Module)
- Updated2023-02-21
- 1 minute(s) read
If you place a Run Statechart function on the block diagram from the Statechart Communication palette, you need to link this function to a statechart .lvsc file. Complete the following steps to accomplish this task.
- Generate code for the statechart.
- Place a Run Statechart function on the block diagram of the caller VI.
- Right-click the function and select Link to Statechart.
- Use the Link to Statechart dialog box to specify a .lvsc file.
- Click the OK button to save changes and return to the block diagram.
The Run Statechart function now is linked to a statechart.
![]() |
Tip To link the function without completing these steps, drag the .lvsc file from the Project Explorer window to the block diagram to create a Run Statechart function that already is linked to the proper .lvsc file. |
