fuzzy logic controlller

Create new topics, add your comment, remark, bugs...
ricaldo2431
Posts: 2
Joined: Wed Sep 14, 2011 11:03 pm

fuzzy logic controlller

Postby ricaldo2431 » Wed Sep 14, 2011 11:24 pm

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
Attachments
FUZZY.rar
(9.64 KiB) Downloaded 197 times

LubinKerhuel
Site Admin - Expert
Posts: 616
Joined: Wed Mar 07, 2007 11:23 pm
Location: Marseille - France
Contact:

Re: fuzzy logic controlller

Postby LubinKerhuel » Sat Sep 17, 2011 6:24 pm

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
Posts: 2
Joined: Wed Sep 14, 2011 11:03 pm

Re: fuzzy logic controlller

Postby ricaldo2431 » Mon Sep 19, 2011 9:06 pm

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
Posts: 3
Joined: Sat Oct 15, 2011 2:03 pm

Re: fuzzy logic controlller

Postby carotti » Sat Oct 29, 2011 5:52 pm

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.


Return to “General Remark and Questions”

Who is online

Users browsing this forum: No registered users and 2 guests