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 次查看(过去 30 天)
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.

采纳的回答

MathWorks Support Team
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.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Fuzzy Logic in Simulink 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by