Good morning, friends.
I will tell you how to create a logic controller you like.
So first of all, I'm taking a Lluvia.
And in the block diagram below, I'm creating the control and simulation.
This is my condolences.
Let's look then.
I require a signal in this case, I use step signal as my signal and I require some submission block.
Then I require again.
And for the system we require error and change of error means getting rid of error so that I.
User.
Daddy Vitya function.
With, you know, T.J..
So these
two are the input requirement of my fuzzy logic controller and I take a area, a function from the Arabs.
This is my area.
It is my signal.
This is my reference signal.
Yoffie.
This is why I do not.
A reference or in terms of s lipless will mean, we can say out of.
Yes.
OK, so this is my error signal.
Here it is, my ESOPs.
This is my office and here is the daddy function.
And as we already told, a required error and change of error function for that purpose, I use a derivative.
And this gives me a change of heart.
This function is over here is S.
Your S. So this is the requirement of my fuzzy controller and I also required a function on which or
which I have to create a fuzzy logic controller.
So right now, I'm taking a second order controller.
Like this.
And I want for us plus one.
And now I go to fuzzy logic over here, I have a fuzzy logic controller, I drag and drop this box.
And I directly connect this to our sister.
So this is the input value.
It is automatically assigned, so it takes input, single output, and this is the value of my controller.
It is just a box.
It is.
It didn't make any decisions right now, so for this or make the decisions I'm waiting for the Lord
fight directly connected to.
The system and here is the part.
Of that fight that I create, an expert system is one expert system.
And I go to gain control in some U.S. law over here, I have.
Seemingly from lowered the output.
I want to lower the step signal as well as possible, so for that purpose, I take Bindaree, I can
take this and this function is.
Directly reference signal and I need feedback signal based on which my fuzzy controller works, I connected
here.
So this is the complete diagram of my fuzzy logic controller.
And right now, I have to create a fire that is called First Fire.
For that purpose, I go to the Toulouse.
Then.
Control and simulation and fuzzy system designer.
Here I have to create a fuzzy fabric based on the rule based
in the system.
We don't really have error, change of error and output also.
So this window perhaps what here I ared.
First error function.
Here you create your editor function and to add a function like this.
This is a granular you can choose any of these episodes based on the requirement, like I'm taking the
range, I'm taking as end.
And this value is like minus five and this value is five.
And there is a other function, embassy function, whose name is S, and it is a function, not a trapezoidal,
sigmoidal function.
Any of these can be taken.
So, again, I'm taking a train function and estranges 02
and I can change color also.
So this is the less my input function, and that's OK.
This is my error function.
Then again, I'm taking a change of error means s u.
S or I can say c e of the.
In time in and Ukraine is also minus danger in that and is Iaw and here is another function I must end
too for and it is goes to six, not for zero.
And I do this.
And then again, another function like a.
Cappotelli Again, this is a function, it is my zero is my five, so this is my for change of error
that you can create according to your application, then we have a output signal also.
So for the output signal, a clear signal is again minus two and the range is based on your application.
I'm taking just as example here.
So this is my.
The regular function exchanges.
Minus four to six,
you can add as many as member function based on the application.
So this is my first embassy function, although and this is my second function for the output like this.
OK, now, based on this, this is my variable or this is my input, variable number crunching.
This is my output variable function for the controller, you have to create two input variables and
one, output and input.
You have to control error and one for Johannah.
Then we go to our base.
So for Rule-based first ad let.
This is my Aitor.
And this is my at a.
And this is my output and directly added to our function, then if you want to change like this, you
have to get as many as.
Application.
These are the different audience and connected.
This is the degree of support and this is not a matter used.
Then again, another matter.
-- it, I take s and my operatively you can add.
As many as a rule, if the no rule are less than what your outlook is, not as expected.
So a number of rules should be as high and.
After that, we have a face like anything like in this case, I have this type of sad face.
Yes, yes, I got the input operation and from here, this will create my fight, then I have to save
this, actually save us all controllers and then close.
OK, so I in this case, I'm not saving it because I have already as you fight.
So I go to my file, I am opening my.
For system.
It will take some time.
So this is my buddy system I already created, and here is my five.
A.
Already, Kate.
And then I think I should give it up, but it is the fourth part, so first.
I go to my data and out here, this is my deck and this is then I have to go through the files and over
here, this emoter, this is my file.
I create the path for my file.
And then I hit run and it gives me the response of my controller.
If you will not create this file, your fuzzy controller not work.
So this is all about like how big of a controller for any system?
Because in my fuzzy controller.
Thank you.