Company Events Academic Community Support Solutions Products & Services Contact NI MyNI

Run Statechart Function

LabVIEW 2010 Statechart Module Help

Edition Date: June 2013

Part Number: 372103F-01

»View Product Info
Download Help (Windows Only)

Owning Palette: Statechart Communication Functions

Requires: Statechart Module

Executes an instance of the linked statechart. You typically place this function inside a loop in the caller VI.

The parameters of this function depend on whether you configured the statechart to be synchronous or asynchronous. You configure the statechart by using the Statechart Code Generation page of the Project Library Properties dialog box.

Details  

Use the pull-down menu to select an instance of this VI.

Run Statechart (Synchronous)

Trigger specifies the trigger to send to the statechart. To specify a trigger, right-click this input terminal and select Create»Control or Create»Constant from the shortcut menu to create an enumerated type control/constant that contains the list of available triggers.

You can send only triggers that you create by using the Edit Triggers and Groups dialog box.

The default value is NULL.
Inputs specifies the input data to the statechart. You define the type of input data by editing the Inputs.ctl type definition of the .lvsc file.
Init? is TRUE if you want to restart the statechart from any initial conditions you provide. Init? is FALSE if you do not want to restart the statechart. The default value is FALSE.
Outputs returns the output data from the statechart. You define the type of data by editing the Outputs.ctl type definition of the .lvsc file.
Terminated? returns TRUE after the top-level statechart enters the Terminal pseudostate, that is, after the entire statechart finishes executing. Terminated? returns FALSE at all other times.

Run Statechart (Asynchronous)

Instance Name specifies the instance of the statechart you want to run.
Inputs specifies the input data to the statechart. You define the type of input data by editing the Inputs.ctl type definition of the .lvsc file.
Init? is TRUE if you want to restart the statechart from any initial conditions you provide. Init? is FALSE if you do not want to restart the statechart. The default value is FALSE.
Outputs returns the output data from the statechart. You define the type of data by editing the Outputs.ctl type definition of the .lvsc file.
Terminated? returns TRUE after the top-level statechart enters the Terminal pseudostate, that is, after the entire statechart finishes executing. Terminated? returns FALSE at all other times.

Run Statechart Details

You must link this function to a statechart before configuring the parameters. To link this function to a statechart, right-click this function and select Link to Statechart from the shortcut menu. You also can double-click the function. You must link to a statechart for which you have generated code.

Tip  Instead of dragging this function from the palette to the block diagram of the caller VI, you can drag the .lvsc file from the Project Explorer window onto a block diagram to create a Run Statechart function that is linked to the statechart.

You can configure the icon style of this function to display the custom icon of the statechart diagram, the statechart to which this function links, and/or the trigger that this function sends to the linked statechart.

You can configure several inputs and outputs of this function. Right-click this function and select Configure from the shortcut menu to display the Configure Statechart Run Node dialog box.


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit