LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Fuzzy logic controller for DC motor

Hello guys!

Can anyone help me out in giving inputs to fuzzy controller which has two input member function Error and Change in error. Is there any tool which can store the previous error and compare it with present error which gives the chane in error?

0 Kudos
Message 1 of 2
(3,046 Views)

Hello,

 

Please look at the shipping example of Fuzzy Logic Toolkit in:

 

C:\Program Files\National Instruments\LabVIEW 2010\examples\control\fuzzy\Tanks with PI control\FuzzyEx Tanks with PI control.vi

 

This code will allow you to see how you can implement the error and rate error by using pure LabVIEW code. Now, if you have the Control Design and Simulation Module, this tool have functions that easily calculate the error and derivative for you.

 

Hope this helps

 

PS: Notice that this example is in LabVIEW 2010. The same example can be found also in 2009 by changing the number of the LabVIEW version on the path to 2009. Previous versions have this code, but they are a bit more difficult to understand. If you have previous version of LV 2009, I strongly recommend you to update to at least 2009 since on this version the toolkit was completely refactored. If you can't here is the location of the example previous to 2009:

 

C:\Program Files\National Instruments\LabVIEW 8.6\examples\control\fuzzy\tanks.llb\Tanks - fuzzy control PI.vi

Barp - Control, Simulation, RTT and HIL - National Instruments
0 Kudos
Message 2 of 2
(3,032 Views)