Stateflow    

Defining an Inherited Stateflow Block

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

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