Skip to Main Content Skip to Search
Home |   Select Country  Choose Country  |  Contact Us  |  Cart Store 
Create Account | Log In
Products & Services Solutions Academia Support User Community Company
spacer spacer spacer spacer spacer spacer

 

Stateflow 7.4

Scheduling Simulink Algorithms Using Stateflow

This model demonstrates how you can schedule a Simulink algorithm using Stateflow.

The Stateflow chart Chart consists of a Simulink algorithm which needs to run at different rates at different times in the simulation. Stateflow is ideally suited to designing the transition logic which determines when these rate transitions happen. The Simulink algorithm on the other hand is used for the actual data processing. Note that we are merely passing in chart inputs and outputs to the Simulink subsystem. For the purposes of this demonstration, the Simulink algorithm merely adds the input to the output each time it is called.

Upon running the simulation, we see the counter counting at varying rates as shown below:

Contact sales
Free technical kit
Trial software
E-mail this page

Get Pricing and
Licensing Options