LabVIEW 2009 Statechart Module Help
»View Product Info
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.