Why do I receive the error "floating constant is out of range" when I build a model using Fuzzy Logic Controller block for my TI C2000 fixed point targets?

4 views (last 30 days)
I have created a new Simulink model that has a Fuzzy Logic Controller block. I am trying to use this model to develop a fuzzy logic controller for the TI C2000 fixed point embedded target. When I try to build the model, I receive the following error messages.
In MATLAB, it completes with '### Build Complete". In CCS, it errors as below:
: "TI_FLogic_data.c", line 29: error: floating constant is out of range
"TI_FLogic_data.c", line 29: error: floating constant is out of range
"TI_FLogic_data.c", line 29: error: floating constant is out of range
"TI_FLogic_data.c", line 30: error: floating constant is out of range
"TI_FLogic_data.c", line 30: error: floating constant is out of range
"TI_FLogic_data.c", line 121: error: floating constant is out of range
"TI_FLogic_data.c", line 121: error: floating constant is out of range
Build Complete,
33 Errors, 0 Warnings, 0 Remarks.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 27 Jun 2009
The ability to use the Fuzzy Logic Controller block in the Fuzzy Logic Toolbox to develop a controller for fixed point target such as the TI C2000 is not available.
The Fuzzy Logic Toolbox does not support fixed point data type and so, it does not support downloading a fuzzy logic controller implementation onto a TI C2000 fixed point target.
To work around this issue, you can use a floating point capable target.

More Answers (0)

Categories

Find more on Fuzzy Logic in Simulink in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!