User`s guide

Sample Rate Transitions
7-11
Sample Rate Transitions
There are two possible sample rate transitions that can exist within a model:
A faster block driving a slower block
A slower block driving a faster block
In singletasking systems, there are no issues involved with multiple sample
rates. In multitasking and pseudomultitasking systems, however, differing
sample rates can cause problems. To prevent possible errors in calculated data,
you must control model execution at these transitions. In transitioning from
faster to slower blocks, you must add Zero-Order Hold blocks between fast to
slow transitions and set the sample rate of the Zero-Order Hold to that of the
slower block:
Figure 7-6: Transitioning from Faster to Slower Blocks (T = sample period)
becomes
Faster Slower
BlockBlock
T=1sec T=2sec
Faster
Slower
Block
T=1sec
T=2sec
Zero-Order
Hold
Block
T=2sec