Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Run Statechart (Statechart Module)

LabVIEW Statechart Module 1.0 Help
August 2007

NI Part Number:
372103A-01

»View Product Info

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 dialog box.

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. You also can double-click the function. You must link to a statechart for which you have generated LabVIEW 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. This action creates a Run Statechart function that is linked to the statechart.

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. This action creates 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 to which this function sends triggers. The value of this parameter must match the value of the Instance Name parameter of the Run Statechart function to which you want to send triggers.
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.

Resources


 

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