fuzzy logic controlller

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

fuzzy logic controlller

Post by 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 692 times

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

Re: fuzzy logic controlller

Post by 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

Post by 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

Post by 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.

Post Reply

Who is online

Users browsing this forum: No registered users and 35 guests