This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Create A Rate-Based Model

A rate-based model is a model with explicitly scheduled subsystems. You can schedule a subsystem with a periodic execution rate by specifying the Sample time parameter for an Inport block connected to the Subsystem block, the Subsystem block, or a block within the Subsystem block where Sample time can be specified (for example, a Delay block).


Using Continuous time blocks such as Integrator blocks are not allowed. Instead use discrete time equivalent blocks

Consider the following model with two atomic Subsystem blocks. Subsystem1 multiplies its input by 2 while Subsystem2 multiplies its input by 4.

  1. Open the Inport 1 dialog box. On the Signal Attributes tab, set the Sample time to 0.2.

  2. Open the Inport 2 dialog box. On the Signal Attributes tab, set the Sample time to 0.4.

  3. If a rate-based model has multiple rates, single tasking is not allowed. Select the Configuration Parameter check box for Treat each discrete rate as a separate task.