Fuzzy controller matlab simulink
![fuzzy controller matlab simulink fuzzy controller matlab simulink](https://www.mathworks.com/help/examples/fuzzy/win64/SimulateFuzzyInferenceSystemExample_01.png)
You can open fuzzy inference system editor and see that our FIS system tank has two inputs and one output, as expected. This variable contains the FIS systems that we have designed previously and we want to implement in Simulink. And here, you see this variable tank in MATLAB workspace. In our case, this is a variable called tank. We open the block dialog and specify the name of the fuzzy inference system. The output of the controller is a calculated valve position for controlling the tank inflow rate. And the second input is change of rate of the water level. The first one is water level error, which is the difference between the set point and measured water level. We add this block into our model and connect it to the rest of the model.Īs you can see, the final logic controller has two inputs. And in the fuzzy logic tool box library, select Fuzzy Logic Controller in this rule viewer block.
![fuzzy controller matlab simulink fuzzy controller matlab simulink](https://i.ytimg.com/vi/j9ud4YWVR00/mqdefault.jpg)
To add the fuzzy logic controller to this module, we open the Simulink library browser. But the outflow rate depends on the diameter of the outflow pipe, which is constant, and the pressure hardens a tank, which worries is the water level.Ĭlearly, the system has some very non-linear characteristics. It can adjust valve controlling the inflow. The tank has one pipe for water inflow and another one for water outflow.
![fuzzy controller matlab simulink fuzzy controller matlab simulink](https://www.mdpi.com/micromachines/micromachines-12-00968/article_deploy/html/images/micromachines-12-00968-g004.png)
In this particular model, you want to control water level in the tank modeled is the subsystem.
#Fuzzy controller matlab simulink how to
This video shows how to integrate a fuzzy logic controller into a Simulink model.