Stateflow | ![]() ![]() |
Defining an Inherited Stateflow Block
These are essential conditions that define an inherited trigger Stateflow block:
Update method
(set in the Chart Properties dialog box) is set to Triggered or Inherited
. (See Specifying Chart Properties)Input from Simulink
data object defined (added and defined using either the graphics editor Add menu or the Explorer). (See Defining Input Data.) The chart sample time is determined by Simulink to be consistent with the rate of the incoming data signal.Example: Inherited Stateflow Block
A Stateflow block that is not explicitly triggered via the trigger port nor is a discrete sample time specified can be triggered by Simulink. The Stateflow block is called by Simulink at a sample time determined by Simulink.
In this example, more than one Input from Simulink data object is defined. The sample times are determined by Simulink to be consistent with the rates of both incoming signals.
The outputs of an inherited trigger Stateflow block are held after the execution of the block.
![]() | Defining a Sampled Stateflow Block | Defining a Continuous Stateflow Block | ![]() |