Real-Time Workshop User's Guide | ![]() ![]() |
Rate Transition Block
The VxWorks Rate Transition block provides a sample time for blocks connected to an asynchronous function-call subsystem when double buffering is not required. There are two options for connecting I/O to an asynchronous function-call subsystem:
The Rate Transition block does not introduce any system delay. It only specifies the sample time of the downstream blocks. It also informs Simlink to allow a non-buffered asynchronous connection. This block is typically used for scalar signals that do not require double buffering.
Rate Transition Block Parameters
This picture shows the VxWorks Rate Transition block's dialog box.
The Sample time parameter sets the sample time to the desired rate.
Rate Transition Block Example
This picture shows a sample application of the Rate Transition block in an ISR.
In this example, the Rate Transition block on the input to the function-call subsystem causes both the In and Gain1 blocks to run at the 0.1 second rate. The Rate Transition block on the output of the function-call subsystem causes both the Gain2 and Out blocks to run at the 0.2 second rate. Using this scheme informs Simlink to allow non-buffered connections to an asynchronous function-call subsystem.
![]() | Asynchronous Buffer Block | Creating a Customized Asynchronous Library | ![]() |