|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.
|IsIn||Determines 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 Statechart||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.
|Send External Trigger||Sends 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 Trigger||Sends 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.