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

Watching Statechart Data (Statechart Module)

LabVIEW 2010 Statechart Module Help

Edition Date: June 2013

Part Number: 372103F-01

»View Product Info
Download Help (Windows Only)

You can use the Statechart Data Display tool to watch statechart data while debugging that statechart. This behavior is similar to a LabVIEW probe except that the Statechart Data Display shows all statechart data at once, whereas a probe shows only the value of a single wire.

Complete the following steps to use this tool:

  1. Run the caller VI.
  2. Right-click the Run Statechart function and select Debug Statechart. The statechart diagram appears in debugging mode, which means you cannot edit the diagram.
    Note  If you do not see the Debug Statechart option, you might have disabled statechart debugging. You must re-enable debugging and re-generate the code before proceeding.
  3. Click the Open Statechart Data Display button , which is located on the toolbar of this window. LabVIEW displays a window that shows the StateData and Outputs clusters that contain statechart data. Each cluster contains indicators that show the current value of that data type. These indicators update after a statechart iteration changes one of the indicator values.

    This window also contains the InternalQueue cluster, which shows the values of the internal trigger queue.
Note  The Statechart Debugging window also contains the Open Statechart Custom Data Display button . This button opens a data display that you can customize. You customize this data display by opening the Project Explorer window for the .lvsc file and double-clicking the CustomDataDisplay.vi item.

 

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