Real-Time Workshop    

Rate Transition Block Options

Several parameters of the Rate Transition block are relevant to its use in code generation for real-time execution. These are discussed below. For full documentation of the Rate Transition block and its block parameters, see the Simulink Blocks section of Using Simulink.

The Rate Transition block handles both types of transitions (fast to slow, and slow to fast). When inserted between two blocks of differing sample rates, the Rate Transition block detects the two rates and automatically configures its input and output sample rates for the appropriate type of transition.

The most critical decision you must make in configuring a Rate Transition block is the choice of data transfer mechanism to be used between the two rates. Your choice will be dictated by considerations of safety, memory usage, and performance. The data transfer mechanism is controlled by two options:

Thus the Rate Transition block offers three modes of operation with respect to data transfer. In order safety, from safest to least safe, these are:

The next four sections describe cases in which Rate Transition blocks are necessary for sample rate transitions. The discussion and timing diagrams in these sections are based on the assumption that the Rate Transition block is used in its default (Protected/Deterministic) mode, with the Ensure data integrity during data transfer and Ensure deterministic data transfer (maximum delay) options on.


  Data Transfer Problems Faster to Slower Transitions in Simulink