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

Input, Output, and State Data (Statechart Module)

LabVIEW Statechart Module 1.0 Help
August 2007

NI Part Number:
372103A-01

»View Product Info

The LabVIEW Statechart Module uses type definitions to represent data that you use with a statechart. 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.

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.


Resources


 

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