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

Input, Output, and State Data (Statechart Module)

LabVIEW 2010 Statechart Module Help

Edition Date: June 2013

Part Number: 372103F-01

»View Product Info
Download Help (Windows Only)

The LabVIEW Statechart Module uses type definitions to represent data that you use with a statechart. By default, these type definitions contain clusters and appear as .ctl files in the Project Explorer window. When looking at the .lvsc file in the Project Explorer window, you see several items, including the following items:

  • Inputs.ctl—Data that the statechart can read but not write. You send this data from the caller VI to the statechart by wiring this type definition to the Inputs parameter of the Run Statechart function.
  • Outputs.ctl—Data that the statechart can read and write. The Run Statechart function returns output data to the caller VI. Access this data by using the Outputs output of the Run Statechart function. Use the Outputs.ctl typedef to define data types that other VIs need to access.
  • StateData.ctl—Data that the statechart can read and write. Items in the StateData.ctl typedef are available to only guards and action. Therefore, the Run Statechart function does not return state data to the caller VI. Use the StateData.ctl typedef to define data types that other VIs do not need to access.
Note  If you want to define only a single element for input, output, or state data, you do not need to use a cluster. However, if you want to define two or more elements, you must place these elements in a cluster.

Double-click a .ctl file to define input, output, and/or state data types for a statechart. You also can drag the .ctl file to a block diagram to access the contents of that type definition from within a VI.


 

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