Page 1 of 1

fuzzy in dspic 30f4011

Posted: Mon Oct 06, 2008 12:22 am
by macroevil
hi ....great job !!!! :D


i have a problem....i'm trying to make a control based in fuzzy logic but the compiler says

"Warning: A terminate function is necessary, however the Real-Time Workshop build process did not generate a terminate function because the 'Terminate function required' check box is cleared."

the fuzzy block is to simple...one input one output......and bisector dezufication....

i dont' know what to do...can you help me.....

..thanks..

Re: fuzzy in dspic 30f4011

Posted: Mon Oct 06, 2008 12:28 am
by LubinKerhuel
Something is wrong in the configuration of you simulink model.

You could try to make a new model model starting from an example model file in the directory example (then copy-past your blocks).
If it did not solve the problem, upload your model on the forum.

Lubin

Re: fuzzy in dspic 30f4011

Posted: Mon Oct 06, 2008 12:36 am
by macroevil
too fast your answer......thanks

the model is to simple...only for test fuzzy in dspic....

There is this model of the attached file..

Re: fuzzy in dspic 30f4011

Posted: Mon Oct 06, 2008 11:05 pm
by LubinKerhuel
I obtain a datatype error. Most (or all) blockset from the fuzzy logic can only take floating point variables.

Btw, I don't think that you will get an efficient using blocks that compute trigonometric or exponential like function... You may replace the buzzy logic blocks with optimized look up table.

Lubin

Re: fuzzy in dspic 30f4011

Posted: Tue Oct 07, 2008 3:06 am
by macroevil
mr lubin.

thaks..but i still trying make a control with fuzzy in a dspic, it's work but ony in some cases, when i configure the FIS with only one input and one output, and two rules(mamdani method).....

do you have any example using FIS with mamdani metho..???

thanks a lot......this toolbox it's a great job congratulations...!!

att:

César Jiménez

Re: fuzzy in dspic 30f4011

Posted: Tue Oct 07, 2008 7:05 pm
by LubinKerhuel
Hi César,

I do not have any example using fuzzy logic or "FIS".