Rectify a warning message on parameter precision loss

조회 수: 10 (최근 30일)
Shyam
Shyam 2013년 5월 14일
댓글: Nicolae Preda 2018년 9월 28일
Warning: Parameter precision loss occurred for 'Threshold'. The parameter's value cannot be represented exactly using the run-time data type. A small quantization error has occurred. To disable this warning
or error, in the Configuration Parameters > Diagnostics > Data Validity pane, set the 'Detect precision loss' option in the Parameters group to 'none'.
First of all, i need to find out where this variable 'Threshold' is defined. 99% i have not defined such a variable. It should be a parameter in some library block.
Can someone help me in locating this and how to fix the warning?
Thanks
  댓글 수: 2
antonino
antonino 2014년 9월 4일
Hello! I have right now the same curiosity... Have you then solved that issued? Cheers, Antonino
yasar89
yasar89 2014년 11월 18일
Hi. Look into the Settings: Configuration Parameters > Diagnostics > Data Validity pane > 'Detect precision loss'.
Now Turn the option in the Parameters to 'Error'. When you start your model again, you will get a error with the exact location of the problem.

댓글을 달려면 로그인하십시오.

답변 (1개)

yasar89
yasar89 2014년 11월 20일
Hi I know it is an old question but for those who might need the answer in the future:
Look into the Settings: Configuration Parameters > Diagnostics > Data Validity pane > 'Detect precision loss'.
Now Turn the option in the Parameters to 'Error'. When you start your model again, you will get a error with the exact location of the problem.
  댓글 수: 1
Nicolae Preda
Nicolae Preda 2018년 9월 28일
Switching it to error doesn't seem to identify the location of the problem. Just the message turns red and stops the diagram update.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Diagnostics에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by