MATLAB: Is the rate transition block using the “Copy” implementation

Embedded Coder

Why is my rate transition block using the "Copy" implementation?
I have a multitasking model on which I enabled data integrity, so I would expect a buffer to be necessary.

Best Answer

The reason for the "copy" implementation is explained in the following Documentation page describing the "largest atomic size: floating-point" for your model's Model Configuration parameters. If the data going into the rate transition block has type "double" and "double" is listed as the "largest atomic size", Simulink recognizes that the "copy implementation" is enough. If you change the "Hardware board" to something with a smaller "largest atomic size" (such as "float"), you will find that the rate transition blocks use "Buf".