Stateflow    

Defining an Inherited Stateflow Block

These are essential conditions that define an inherited trigger Stateflow block:

Inherited Stateflow Block Example

Simulink can trigger a Stateflow block that is not explicitly triggered by a trigger port or a specified discrete sample time. In this case, 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