Main Content

Deterministic data transfer

Deterministic data transfer behavior for automatically inserted Rate Transition blocks

Model Configuration Pane: Solver

Description

When you allow the software to automatically handle rate transitions by inserting Rate Transition blocks, use this parameter to specify how the software sets the Ensure deterministic data transfer parameter for the automatically inserted blocks.

Dependencies

To enable this parameter when the solver Type is Variable-step, select Automatically handle data transition for data transfer.

To enable this parameter when the solver Type is Fixed-step:

  • Set Periodic sample time constraint to Unconstrained or Specified.

  • Select Automatically handle data transition for data transfer.

Settings

Whenever possible (default) | Always | Never (minimum delay)
Whenever possible

The software selects the Ensure deterministic data transfer (maximum delay) parameter for automatically inserted Rate Transition blocks when the block handles data transfer between two periodic sample rates that are related by an integer factor. For Rate Transition blocks that handle data transfer between sample rates that are not periodic or are not related by an integer factor, the software does not select the Ensure deterministic data transfer (maximum delay) parameter.

Always

The software always selects the Ensure deterministic data transfer (maximum delay) parameter for automatically inserted Rate Transition blocks.

The software issues an error if you select this option and the model automatically inserts a Rate Transition block to handle data transfer between two sample times that are not periodic sample times related by an integer factor.

Never (minimum delay)

The software never selects the Ensure deterministic data transfer (maximum delay) parameter for automatically inserted Rate Transition blocks.

Clearing the Ensure deterministic data transfer (maximum delay) parameter can provide reduced latency for models that do not require determinism. For more information, see Rate Transition.

Recommended Settings

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

ApplicationSetting
DebuggingNo impact
TraceabilityNo impact
EfficiencyNo impact
Safety precautionNo recommendation

Programmatic Use

Parameter: InsertRTBMode
Type: string | character vector
Values: 'Always' | 'Whenever possible' | 'Never (minimum delay)'
Default: 'Whenever possible'

Version History

Introduced in R2008a