Sample Time

Create charts that respond to continuous and discrete mode changes.

Choosing the correct sample time affects how well your model simulates. Choose continuous update method for models that respond to both continuous and discrete mode changes. Deciding whether to disable zero-crossing detection can improve the performance of models that frequently fluctuate between two modes of operation. When you define continuous variables, Stateflow® can implicitly create their time derivatives.


Continuous-Time Modeling in Stateflow

Gives an overview of continuous-time modeling

Model Hybrid Systems with Model Logic

Describes the workflow for creating continuous-time charts

Configure a Stateflow Chart to Update in Continuous Time

Explains how to configure Stateflow charts to use a continuous update method

Define Continuous-Time Variables

Explains how to define continuous-time variables and their derivatives, and expose continuous states to Simulink® models

Model a Bouncing Ball in Continuous Time

Provides a step-by-step tutorial for modeling a bouncing ball in continuous time in a chart

Design Considerations for Continuous-Time Modeling in Stateflow Charts

Describes how to constrain the semantics of your Stateflow chart for modeling continuous-time systems

Was this topic helpful?