Some blocks produce incorrect results when their sample time is changed at run time.
Some blocks produce incorrect results when you change their sample time at run time. If you include such blocks in your model, the software displays a warning message during the model build.
To avoid incorrect results, change the sample time in the original model. Then, rebuild and download the model.