Main Content

Automatically handle rate transition for data transfer

Option to ensure integrity of data transfer between different sample times in deployed code

Model Configuration Pane: Solver


When you select this option, the software inserts Rate Transition blocks between blocks that have different sample times. The inserted Rate Transition blocks ensure that data in deployed code transfers between different sample times without overwritten values.

For more information, see Rate Transition Block Options (Simulink Coder).


off (default) | on

The software does not insert Rate Transition blocks between blocks with different sample times. When the software detects a sample time transition, you must modify the model to eliminate the transition or manually insert a Rate Transition block.


The software inserts a Rate Transition block between blocks with different sample times and handles rate transitions for asynchronous and periodic tasks.

For asynchronous tasks, the software configures the inserted blocks to ensure data integrity but not determinism during data transfers.

Selecting this option enables the Deterministic data transfer parameter, which allows you to control the level of data transfer determinism for periodic tasks.

Recommended Settings

The table summarizes recommended values for this parameter based on considerations related to code generation.

DebuggingNo impact

No impact for simulation or during development

Off for production code generation

EfficiencyNo impact
Safety precaution

No recommendation

Programmatic Use

Parameter: AutoInsertRateTranBlk
Type: string | character vector
Value: 'on' | 'off'
Default: 'off'

Version History

Introduced in R2007a

See Also