Page 1 of 1

fuzzy logic controlller

Posted: Wed Sep 14, 2011 11:24 pm
by ricaldo2431
Dear Lubin:

We are designing a fuzzy logic controller (Mandani) using matlab and simulink dspic tool and the idea is to implement it into a dsPIC33fj128mc802.

At the compilation process we obtain an error message.

Can you please help me to fix this problem please.

I send you the files of my controller. Thank you.



Re: fuzzy logic controlller

Posted: Sat Sep 17, 2011 6:24 pm
by LubinKerhuel
Hi Ricardo,

I could not open the fuzzy-logic block of yoru model as I do not have the Fuzzy-Logic Toolbox.
Anyway, The model seems fine otherwise.

Usually, theses fuzzy-logic blocks use a lot of memory as they implement huge look-up table for sigmoide function or similar.
Could you copy-past the error you get ?


Re: fuzzy logic controlller

Posted: Mon Sep 19, 2011 9:06 pm
by ricaldo2431
Hi lubin,

thank you for your response.

In fact actually my project do not show any error, now it generate the dspic code, but when I try to program the system, it does not nothing.

I check the memory usage and its ok, so is not a memory problem.

I thank you your help.


Re: fuzzy logic controlller

Posted: Sat Oct 29, 2011 5:52 pm
by carotti
Hi Ricardo,
I was curious about your post so had a quick look. I notice that you have 1ms sample time (relatively fast) but are only running the processor at 2.00 MIPS. Perhaps the processor is unable to complete the task within the 1ms period. Crank up the MIPS by a factor of 10 and you may see a result?