Stateflow User's Guide Previous page   Next Page

Selecting Stateflow Data Types

In the Model Explorer, when you click the Type field for data in its Data properties dialog or click the DataType element in the row for data in the Contents pane, a selectable list of data types appears. You can directly specify the type of the data by selecting one of the following types:

Entry
Description
double
64-bit double-precision floating point
single
32-bit single-precision floating point
int32
32-bit signed integer
int16
16-bit signed integer
int8
8-bit signed integer
uint32
32-bit unsigned integer
uint16
16-bit unsigned integer
uint8
8-bit unsigned integer
boolean
Boolean (1 = true; 0 = false)
fixpt
Fixed-point data
Specifying fixpt enables the Stored Integer and Scaling fields in the adjacent Fixed-Point field section, which are used to specify the fixed-point type. See Using Fixed-Point Data in Stateflow for a description of the Stateflow fixed-point type and its use in Stateflow.
For fixed-point data, the Use Strong Data Typing with Simulink IO option in the chart properties dialog (see Specifying Chart Properties) is always on. This means that if input or output fixed-point data in Stateflow does not match its counterpart data in Simulink, a mismatch error results.
inherited
Inherit type of input or output data from Simulink
See Inheriting Input and Output Data Type from Simulink for more details.
ml
This data is designed to hold MATLAB data in Stateflow. See ml Data Type.


Previous page  Typing Stateflow Data Inheriting Input and Output Data Type from Simulink Next page

© 1994-2005 The MathWorks, Inc.