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

Statechart Communication Functions

LabVIEW 2010 Statechart Module Help

Edition Date: June 2013

Part Number: 372103F-01

»View Product Info
Download Help (Windows Only)

Owning Palette: Statechart Functions and Objects

Requires: Statechart Module. This topic might not match its corresponding palette in LabVIEW depending on your operating system, licensed product(s), and target.

Use the Statechart Communication functions to execute a statechart, send triggers to a statechart, and determine whether a particular state is active. You can place these functions on a block diagram.

The functions on this palette can return general LabVIEW error codes.

Palette ObjectDescription
IsInDetermines whether the specified state is active. An active state is one that a statechart is currently in. You can use this function in either a guard, an action, or a subVI that a guard or action calls.
Run StatechartExecutes 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.
Send External TriggerSends a trigger to the external queue of an instance of the linked statechart. You can use this function in the caller VI or in a VI that runs parallel to the caller VI.

You can use this function with only asynchronous statecharts.
Send Internal TriggerSends a trigger to the internal queue of the statechart. You can use this function within only an action or in a subVI that an action calls.

You can use this function with both asynchronous and synchronous statecharts. However, you cannot use this function in a statechart that is configured for a single-cycle loop application.

 

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