Page 1 of 1

Fuzzy Logic..

Posted: Mon Sep 22, 2008 12:12 am
by NigmaTech
Hi Lubin!

Is that possible to use Fuzzy Logic Toolbox and your blockset together in dsPIC?

Re: Fuzzy Logic..

Posted: Mon Sep 22, 2008 11:14 pm
by LubinKerhuel
i NigmaTech,

All blockset compatible with the Real Time Workshop (RTW) Embedded Coder can be used in model for dsPIC.
Fuzzy Logic Blockset is compatible with the Real Time Workshop (RTW) Embedded Coder thus it will work on dsPIC. (see http://www.mathworks.com/products/fuzzy ... tion2.html)

I did not used it yet. But the fuzzy logic blockset seems to use time consuming function (exponential in sigmoid function and so...)
Calculation are also done in floating point which is also time consumming.
Therefore, it will works find, but the calculations may be slow, it now depends on your needs...


If you are to use dsPIC efficiently, you may considere to convert the fuzzy logic blocks you will used into fixed point equivalent (use "look under mask" of the block). ... (you could for example use look up table instead of using the exponential floating point function and so on...)

Lubin