Stateflow | ![]() ![]() |
Setting the Stateflow Block Update Method
Implementing different Stateflow interfaces in Simulink requires you to set the update method for your chart. This section describes each of the settings for the update method of your chart.
Setting the update method for your Stateflow chart block is only part of the process of implementing an interface to your Stateflow block in Simulink. To see a summary of the settings necessary for implementing any possible interfaces in Simulink to your Stateflow chart block, see Implementing Interfaces in Stateflow to Simulink.
Stateflow Block Update Methods
Stateflow blocks are Simulink subsystems. Simulink events wake up subsystems for execution. To specify a wakeup method for a chart, set the chart's Update method property in the properties dialog for the chart (see Specifying Chart Properties). Choose from the following wakeup methods:
If you define input events for the chart, the Stateflow block is explicitly triggered by a signal on its trigger port originating from a connected Simulink block. This trigger input event can be set in the Stateflow Explorer to occur in response to a Simulink signal that is Rising, Falling, or Either (rising and falling), or in response to a Function Call. See Defining Input Events and Adding Input Events from Simulink.
If you do not define input events, the Stateflow block implicitly inherits triggers from the Simulink model. These implicit events are the sample times (discrete-time or continuous) of the Simulink signals providing inputs to the chart. If you define data inputs (see Defining Input Data), the chart awakens at the rate of the fastest data input. If you do not define any data inputs for the chart, the chart wakes up as defined by its parent subsystem's execution behavior.
See Interface to External Sources for more information.
![]() | Overview Stateflow Interfaces | Adding Input or Output Data and Events to Charts | ![]() |