'Decimation' Error in Simulink

11 views (last 30 days)
di liu
di liu on 12 Oct 2020
Commented: di liu on 15 Oct 2020
Hi all,
I hope you are well. When I run my Simulink model, I met the issue 'The 'Decimation' option must be a positive integer'. Does anyone know why it occurs?
Thank you for your help.
Di
  2 Comments
di liu
di liu on 15 Oct 2020
Hi Mathieu,
Thank you for your answer. The main issue is in Simulink, it does not tell me which block causes the error.

Sign in to comment.

Accepted Answer

Fangjun Jiang
Fangjun Jiang on 12 Oct 2020
Follow the link of the error message to find the involved block. You must have provied an incorrect number for the "Decimation" parameter, which is a factor, n, which writes data at every nth time that the block executes. It's value must be a positive integer.
  3 Comments
di liu
di liu on 15 Oct 2020
Hi Fangjun,
Thank you for your help. I have found the issue, it is caused by the 'clock' block.

Sign in to comment.

More Answers (0)

Products


Release

R2019b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by