- Increase the word length choice in the Fixed-Point Tool to check if greater precision improves the numerical behavior or
- Specify a larger safety margin that will accommodate for a larger operating range as Walter suggested (see image below)
Wrap/Saturate on overflow
조회 수: 45(최근 30일)
I'm trying to simulate a control algorithm with the fixed point tool. When I apply the fixed point data types and try to simulate the model, I get many wrap/saturate on overflow warnings. What's the right method to avoid overflows and fix them?
Thanks in advance
MathWorks Fixed Point Team 2020년 1월 3일
I think it’s important to understand if these overflows are a concern in the context of the numerical behavior of your control algorithm i.e. Is the fixed point response within a reasonable tolerance compared to the floating point response?
If the answer is no, you can try two quick things:
It might help to check out these how to videos on Fixed-Point Tool: