Why does the Fixed Point Advisor show a Trigonometric function as unsupported when using CORDIC approximation?

조회 수: 1 (최근 30일)
Hello,
The Trigonometric Function in Simulink shows that fixed point data type is supported "only when Approximation method is CORDIC". However, when I use a block in my model with CORDIC approximation and I run the Fixed Point advisor, the third task, "Address Unsupported Blocks" fails, with the failing block being the Trigonometric function, and a suggestion to replace with a lookup table. Thanks.
  댓글 수: 1
Kaustubha Govind
Kaustubha Govind 2012년 7월 20일
What version of MATLAB are you using? Are you referring to the documentation installed with your version, or from the web? I suspect that fixed-point support may have been added for the Trignometric block in a fairly recent release.

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

답변 (3개)

Kaustubha Govind
Kaustubha Govind 2012년 7월 20일
편집: Kaustubha Govind 2012년 7월 20일
What version of MATLAB are you using? Are you referring to the documentation installed with your version, or from the web? Fixed-point support for the Trignometric block was added in R2010a. Also, only the 'sin', 'cos', 'sincos' and 'cos+jsin' functions appear to be supported.

Ali
Ali 2012년 7월 24일
I am using the R2012a version. I think the documentation for this issue is the same (installed or web). My question is that I find it strange that the documentation mentions that fixdt is supported for trigonometric functions with CORDIC approximation but the Fixed Point Advisor fails on the third task because the trigonometric function block (configured with CORDIC approximation) is not supported.
  댓글 수: 2
Kaustubha Govind
Kaustubha Govind 2012년 7월 24일
Which function have you selected? If it is indeed one of the supported sin, cos, sincos or cos+jsin functions, I would recommend contacting MathWorks Tech Support to see if this is a bug in Fixed-Point Advisor.
Rafael
Rafael 2013년 3월 1일
Hello, I am having the same problem on MATLAB R2012b, and it is quite easy to reproduce. Just go to the link on the help for trigonometric functions http://www.mathworks.com/help/simulink/slref/trigonometricfunction.html and open the link under sincos Function with Fixed-Point Input example, it will open the model with this example, then use the Fixed Point Advisor and it will fail marking this block as unsupported. Has a solution been found? Should each of the people that runs into this problem contact MathWorks Tech Support directly?

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


Bo
Bo 2012년 8월 29일
편집: Bo 2012년 8월 29일
I also faced this problem when I used fixed point advisor & fixed point tool. Finally, I manually defined all bit widthes so as to avoid the warning. I suggest you use data type conversion model to isolate Trigonometric Function model.

카테고리

Help CenterFile Exchange에서 Fixed-Point Designer에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by