Why do I receive an error about Boolean data types when simulating a Fuzzy Logic controller in Simulink 5.0 (R13)?
Show older comments
I have a Simulink model which uses a Fuzzy Logic controller. When I run the model, I receive the following error message:
Data type mismatch. Input port 2 of block 'fuzzy_controller_TMW/Fuzzy Logic Controller/FIS Wizard/Error/NB/ZMF/Product' expects a signal of data type 'double'. However, it is driven by a signal of data type 'boolean'
A similar error is produced when I try to build my model using Real-Time Workshop:
Error executing build command: Error using ==> make_rtw
Error using ==> rtwgen
--> Data type mismatch. Input port 2 of block 'fuzzy_pdi_controller/Fuzzy Logic Controller/FIS Wizard/Error/NB/ZMF/Product' expects a signal of data type 'double'. However, it is driven by a signal of data type 'boolean'.
Accepted Answer
More Answers (0)
Categories
Find more on Fuzzy Logic in Simulink in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!