Stateflow    
Behavioral Properties

Behavioral properties affect the behavioral aspects of the Stateflow chart. They change how the chart behaves in the execution of its diagram.

See also Behavioral Methods.

For a key to the abbreviations for object types in the Object column, see Reference Table Column Descriptions.

Property
Type
Acc
Description
Objects
Debug.
Animation.
Delay
Double
RW
Specify a delay (slow down) value for animation. Equivalent to setting the Delay (sec) field in the Animation section of the Debugger window.
M
Debug.
Animation.
Enabled
Boolean
RW
If set to true, animation (simulation) is enabled. If false (=0), disabled. Equivalent to selecting the Enabled or Disabled radio button of the Animation section of the Debugger window.
M
Debug.
BreakOn.
ChartEntry
Boolean
RW
If set to true, set the chart entry breakpoint for all charts in this machine. Equivalent to selecting the Chart Entry check box on the Debugger window.
M
Debug.
BreakOn.
EventBroadcast
Boolean
RW
If set to true, set the event broadcast breakpoint for all charts in this machine. Equivalent to selecting the Event Broadcast check box on the Debugger window.
M
Debug.
BreakOn.
StateEntry
Boolean
RW
If set to true, set the state entry breakpoint for all states in this machine. Equivalent to selecting the State Entry check box on the Debugger window.
M
Debug.
Breakpoints.
EndBroadcast
Boolean
RW
If set to true, set a debugger breakpoint for the end of the broadcast of this event. Equivalent to selecting the End of broadcast check box in the Properties dialog for this event.
E
Debug.
Breakpoints.
StartBroadcast
Boolean
RW
If set to true, set a debugger breakpoint for the start of the broadcast of this event. Equivalent to selecting the Start of broadcast check box in the properties dialog for this event.
E
Debug.
Breakpoints.
onDuring
Boolean
RW
If set to true, set the state during breakpoint for this chart. Equivalent to selecting the State During check box in the properties dialog for this state.
S
Debug.
Breakpoints.
OnEntry
Boolean
RW
If set to true, set the entry breakpoint for this object. Equivalent to selecting the Chart Entry or State Entry check box in the properties dialog for this chart or state, respectively.
C S
Debug.
Breakpoints.
OnExit
Boolean
RW
If set to true, set the state entry breakpoint for this object. Equivalent to selecting the State Exit check box in the properties dialog for this object.
S
Debug.
Breakpoints.
WhenTested
Boolean
RW
If set to true, set a debugging breakpoint to occur when this transition is tested to see if it is a valid transition. Equivalent to selecting the When Tested check box in the properties dialog of this transition.
T
Debug.
Breakpoints.
WhenValid
Boolean
RW
If set to true, set a debugging breakpoint to occur when this transition has tested as valid. Equivalent to selecting the When Valid check box in the Properties dialog of this transition.
T
Debug.
DisableAll
Breakpoints
Boolean
RW
If set to true, disables the use of all breakpoints in this machine. Equivalent to selecting the Disable all check box in the Debugger window.
M
Debug.
RunTimeCheck.
State
Inconsistencies
Boolean
RW
If set to true, check for state inconsistencies during a debug session. Equivalent to selecting the State Inconsistency check box in the Debugger window.
M
Debug.
RunTimeCheck.
TransitionConflicts
Boolean
RW
If set to true, check for transition conflicts during a debug session. Equivalent to selecting the Transition Conflict check box in the Debugger window.
M
Debug.
RunTimeCheck.
CycleDetection
Boolean
RW
If set to true, check for cyclical behavior errors during a debug session. Equivalent to selecting the Detect Cycles check box in the Debugger window.
M
Debug.
RunTimeCheck.
DataRangeChecks
Boolean
RW
If set to true, check for data range violations during a debug session. Equivalent to selecting the Data Range check box in the Debugger window.
M
Debug.
Watch
Boolean
RW
If set to true, cause the debugger to halt execution if this data is modified. Setting this property to true is equivalent to selecting the Watch column entry for this data in the Explorer or selecting the Watch in debug check box in the Properties dialog for this data.
D
Decomposition
Enum
RW
Set this property to 'EXCLUSIVE_OR' to specify exclusive (OR) decomposition for the states at the first level of containment in this chart or state.
Set to 'PARALLEL_AND' to specify parallel (AND) decomposition for these states.
Equivalent to selecting the Decomposition in the context menu for the chart or state.
C S
EnableBitOps
Boolean
RW
If set to true, enable C-like bit operations in generated code for this chart. Equivalent to selecting the Enable C-like bit operations check box in the chart Properties dialog.
C
ExecuteAt
Initialization
Boolean
RW
If set to true, this chart's state configuration is initialized at time zero instead of first input event. Equivalent to selecting the Execute (enter) Chart at Initialization check box in the chart Properties dialog.
C
LabelString
String
RW
Label for this object. Equivalent to typing the label for this object in its label text field in the diagram editor.
S B F T
SampleTime
String
RW
Sample time for activating this chart. Applies only when the UpdateMethod property for this chart is set to 'DISCRETE'
( = Sampled in the Update method field in the Properties dialog for this chart).
C
Scope
Enum
RW
Scope of this data or event. Allowed values vary with the object containing this data or event.
The following apply to any data object:
  • 'LOCAL_DATA' (Local)
  • 'CONSTANT_DATA' (Constant)
  • 'OUTPUT_DATA' (Output to Simulink)
The following apply to data for machines:
  • 'IMPORTED_DATA' (Exported)
  • 'EXPORTED_DATA' (Imported)
The following apply to data for charts:
  • 'INPUT_DATA' (Input to Simulink)
The following apply to data for charts and functions:
  • 'TEMPORARY_DATA' (Temporary)
The following apply to data for functions:
  • 'FUNCTION_INPUT_DATA' (Input Data)
  • 'FUNCTION_OUTPUT_DATA' (Output Data)
The following apply to any event:
  • 'LOCAL_EVENT' (Local)
The following apply to events for charts:
  • 'INPUT_EVENT' (Input from Simulink)
  • 'OUTPUT_EVENT' (Output to Simulink)
The following apply to events for machines:
  • 'IMPORTED_EVENT' (Imported)
  • 'EXPORTED_EVENT' (Exported)
Above values are equivalent to entering the value shown in parentheses in the Scope field of the Properties dialog or the Explorer for this data.
D E
Trigger
Enum
RW
Type of signal that triggers this Input to Simulink or Output to Simulink event associated with its chart. Can be 'EITHER_EDGE_EVENT' or 'FUNCTION_CALL_EVENT'. Equivalent to specifying Either Edge or Function Call, respectively, in the Trigger field of the Properties dialog for this event.
E
UpdateMethod
Enum
RW
Activation method of this chart. Can be 'INHERITED', 'DISCRETE', or 'CONTINUOUS'. Equivalent to the Update method field in the Properties dialog for this chart, which takes one of the following corresponding selections: Triggered or Inherited, Sampled, Continuous.
C


  Structural Properties Deployment Properties