When the output of a faster block (20 ms) is used as the input to a slower block (100 ms), Simulink needs to know how to handle the rate transition. If not handled properly, you get compilation errors.
Insert a "Rate Transition" block between your 20ms and 100ms blocks. Connect the output of the 20ms block to the Rate Transition, then connect that to the 100ms block. Set the Rate Transition block’s output sample time to 0.1 (100ms).
Hope this helps!
