FORUM TOPIC · READ ONLY

fuzzy logic controlller

fuzzy logic controlller

Forum : General Remark and Questions

4 message(s) · archive en lecture seule

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.



Sincerely,



Ricardo

Pièce jointe : FUZZY.rar

LubinKerhuel

Re: fuzzy logic controlller

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 ?



Lubin
ricaldo2431

Re: fuzzy logic controlller

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.





Ricardo
carotti

Re: fuzzy logic controlller

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?

Dave.