From: Andress on
Hi friends,

I want to integrate the Fuzzy Inference Engine from the Fuzzy Logic Toolbox into my C# program, so that I can write some control applications.

I have read the Fuzzy Logic Toolbox's documentation, and it says that I should use the 2 files fis.c and fismain.c to create stand-alone applications. But what those 2 files do is not what I want.
Applications created from those files only read input data from a file. In my program, however, I need to read on-line data (the data may come from a RS-232 port for example), perform fuzzy calculation, then output a control value. The update cycle time period of my C# based fuzzy controller is about 50 (ms).

So is it possible to do this? And if it's possible, could you please give me some advices about how to do in detail?

Thank you and best regards,

Iniesta
From: Rafael Fernandes Lopes on
Iniesta,

I will propose two solutions (I don't have experimented the first one
yet):

(1) You can use the Java/C codes available in http://ist.psu.edu/yen/fltext/wrapper/index.html.
The author proposes to enable you: use the GUI of MATLAB Fuzzy Logic
Toolbox for designing, adjusting, and visualizing membership functions
and fuzzy rules and use the wrapper to embed your fuzzy systems in a C/
Java application;

(2) You can create the application using a native Fuzzy
implementation. Thus, I advice you to use one of the following
libraries:
* "Free Fuzzy Logic Library" (http://ffll.sourceforge.net/);
* "FuzzyLite" (http://code.google.com/p/fuzzy-lite/);
* "DotFuzzy" (http://www.havana7.com/dotfuzzy/).

The last one was built in C# and can be used by all languages in .NET
platform.

Best regards,

On Aug 7, 8:16 am, "Andress " <scientist92...(a)yahoo.com> wrote:
> Hi friends,
>
> I want to integrate the Fuzzy Inference Engine from the Fuzzy Logic Toolbox into my C# program, so that I can write some control applications.
>
> I have read the Fuzzy Logic Toolbox's documentation, and it says that I should use the 2 files fis.c and fismain.c to create stand-alone applications. But what those 2 files do is not what I want.
> Applications created from those files only read input data from a file. In my program, however, I need to read on-line data (the data may come from a RS-232 port for example), perform fuzzy calculation, then output a control value. The update cycle time period of my C# based fuzzy controller is about 50 (ms).
>
> So is it possible to do this? And if it's possible, could you please give me some advices about how to do in detail?
>
> Thank you and best regards,
>
> Iniesta

From: Andress on
Hi Rafael,

Thank you for your answer. The links you gave me are really helpful. Although they don't solve my problem directly, they show me some interesting ways to use the two files from Fuzzy Logic Toolbox.

Best regards,

Iniesta