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

Determining Whether a State is Active (Statechart Module)

LabVIEW Statechart Module 1.0 Help
August 2007

NI Part Number:
372103A-01

»View Product Info

Complete the following steps to determine whether a state is active.

  1. Place the IsIn function on the block diagram of a guard or action.  
  2. Click the Inputs cluster element, located on the left side of the block diagram, to display a list of cluster elements.
  3. Select the StatechartState element.
  4. Wire the Statechart State element to the Statechart States input of the IsIn function.
  5. Double-click the IsIn function to launch the Select State dialog box.
  6. Select the state that you want to check for activity.
  7. Click the OK button to save changes and return to the block diagram.

The guard or action code now resembles the following figure:

The IsIn? Boolean indicator of this function returns TRUE if the specified state is active. This Boolean returns FALSE if the specified state is not active.


Resources


 

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