Fuzzy logic controller design
Hi,
Is it possible to configure the "Fuzzy Logic Controller Design" with sending a code in another language of programmation like C for exemple and without need to access each time using : Tools > Control Design and Simulation > Fuzzy Logic Controller Design ?????????????????????????????????
I assume you have 3 terms for each of your 3 parameters then, to get the 27 rules. If this is the case, going to the rule-base editor will bring up all 27 rules (the control designer automatically populates the rules list, so you don't even have to add additional rules to reach this number). Consequences, unlike rules however, are limited to 9. When I asked what you are using the controller before, perhaps I should have been more specific, as I was more curious as to whether or not you need singletons for your consequences? I am still having trouble imagining a situation where you need 27 *consequences*, unless perhaps they are singletons.
That being said, I don't know of a way to use the fuzzy logic kit to create a controller with more than 9 consequences (27 rules are no problem). How familiar are you with the mathematics and principles behind the fuzzy logic controller? It's always possible to write your own code, and if you need any help, I'd be more than willing to help out.
-Cory
Similar Messages
-
Problem with Fuzzy Logic Controller Design window
Hi,
I'm designing a fuzzy inference system using the Fuzzy Logic Controller Design tool.
But when I use up to 4 input variables, the Rule Editor window is out of center and I cannot see the left parts of the antecedents.
See the attached picture.
The visualization is not movable and resizing the window with system utilities does not give any results.
Anyody can help me? Thanks!
Attachments:
Bug Fuzzy Controller Design.JPG 68 KBHello all
The PID and Fuzzy Logic Toolkit 2009 was completely redesigned.
There are new API VIs and a more intuitive user interface for creating controllers.
You can create MIMO controllers with unlimited inputs and outputs, and also modify the controller on-the-fly.
Check it out the new features and let us know your needs on Fuzzy control.
LabVIEW PID and Fuzzy Logic Toolkit User Manual
Regards,
Bruno Cesar
National Instruments -
Programmin​g fuzzy logic controller design
Hi,
please i am using fuzzy logic controller design. Inputs and outputs data are connected to an OPC server.
My question is: could i access programmatically (in the vi ) to the fuzzy logic controller design to prevent to enter in it each time that i need to change values ?
Samer,Hello all
The PID and Fuzzy Logic Toolkit 2009 was completely redesigned.
There are new API VIs and a more intuitive user interface for creating controllers.
You can create MIMO controllers with unlimited inputs and outputs, and also modify the controller on-the-fly.
Check it out the new features and let us know your needs on Fuzzy control.
LabVIEW PID and Fuzzy Logic Toolkit User Manual
Regards,
Bruno Cesar
National Instruments -
Hi all,
Anyone know how to insert/attach data input (from fuzzy system designer) to Fuzzy Logic Controller.?
Thanks.
Best regards,
WC Leong.hello,
could you please provide us an example code so we can check what exactly is the issue.
thanks,
Mark -
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?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 and Simulation Group - LabVIEW R&D - National Instruments -
I am facing problem with fuzzy PD logic controller for transfer function in control and simulation loop.
Plz Help me in this regard...................
i have attache snapshot of my program
Attachments:
fuzzy in simulation loop.JPG 52 KBHi Sankhadip,
Sorry for the late response. I was looking at your code and
I noticed that the graph scale does not start from zero. That might be the
reason why you don't see the transient in the simulation. To change the scales
simply double click on the lower limit and set it to zero. If this is not the
expected results, can you please post the expected results, so we can see what are the
differences between the results . Also, you might be using different
solvers, and that gives different results as well.
Thanks and have a great day.
Esmail Hamdan | Applications Engineering | National
Instruments -
My project title is fuzzy logic controller for rotary crane. need to reduce sway of pendulum
helo. i want to ask whether my block diagram is correct or not. there is no error occured but no waveform will generate. i give the picture of my block diagram and my front panel. really need help. big thanks!
Attachments:
macam jadik je.JPG 42 KB
front panell.JPG 28 KBPlease look at this post for instructions in how to use Fuzzy Logic with RT. However, notice that this only works with RT, not FPGA:
http://forums.ni.com/t5/LabVIEW/Problem-of-using-fuzzy-in-my-project/m-p/1772362#M615631
Hope this helps
Barp - Control and Simulation Group - LabVIEW R&D - National Instruments -
Multiple Input Multiple Output Fuzzy Logic Controller
I am designing an autotuning PID temperature control system whose PID gains are adjusted using a Multiple Input Multiple Output (MIMO) Fuzzy Controller. I am unsure how to set up specific inputs and how to use specific outputs when there are multiple inputs and outputs. Specifically, my Fuzzy system has two inputs and three outputs.
For the input, I have two 1D arrays of scalars (doubles) which I have used to build an array and concatanated the inputs to the array. How do I configure which values of this array are used as each specific input value to the fuzzy system?
Similarly, for the output, the fuzzy system gives three output values which are used as the PID gains. How do I configure these such that they are in the right order to be used as the PID Gains of the PID VI?Hi natsmi,
You can find some examples by navigating to:
C:\Program Files (x86)\National Instruments\LabVIEW XXXX\examples\control\fuzzy
Some of them are at least MISO systems and might be helpful to clarify some ideas. You can also find them using the Example Finder from LabVIEW (By going to help on the top menu, and then Find Examples). There you can go to the search tab on the left and type in fuzzy.
Hope this helps.
Regards,
AGJ -
Display fuzzy logic firering rule in front panel?
Hi all,
I only can display the firering rule no. (attached 1.gif red circule) in front panel.
How can I also display the firering rule no. detail infomation (attached 2.gif) in display panel?
Can I show the .fc file (generate in Fuzzy Logic Controller Design)detail infomation in display panel?
Thanks
Fung
Attachments:
1.GIF 61 KB
2.GIF 79 KBStephen M,
Attached .fc file. Please help!
Thanks
Fung
Attachments:
FuzzyDesign_v5_height.fc 3 KB -
Hey,
I try to design a fuzzy logic controller in LabVIEW 2009 for a air heating coil.i have two entries, error and error variation and i need the my fuzzy control to give variation order. The problem is the variation order is always 0 my rule base is not invoked, Can we tell my what are the possible causes ?Stoleriu wrote:
Sorry i m new to this
No worries, please follow the link I included in my above comment. It will show you how to post a snippet here, so we can actually see the code in LabVIEW ourselves.
P.S. Dang, are you running utorrent on Windows 95? Haha -
Sir,
I have developed an inference system using the Labview fuzzy system designer. Now the .fs file has no block diagram with it.
I want to add some VIs for the input and output and some graphic to make the system more user friendly
How can i modify the fuzzy system designer file as its block diagram is not visible?
Best Regards,
AliAfter you develop the Fuzzy Logic System using the Designer, you need to use the VI "FL Fuzzy Controller.vi" to implement the controller. The best way to see this is using the examples below:
C:\Program Files (x86)\National Instruments\LabVIEW 2013\examples\control\fuzzy\Car Parking\FuzzyEx Car Backward Parking.vi
This example will show you how how implement a closed-loop controller with two fuzzy logic system running in different activities (forward and backward). and you can see this example:
C:\Program Files (x86)\National Instruments\LabVIEW 2013\examples\control\fuzzy\Dynamic greenhouse controller\FuzzyEx Dynamic Fuzzy Controller for a greenhouse.vi
This example shows how to change the paraemters othe fuzzy controller while it is running and also shows you how to create a multiple-input and multiple output controller.
Hope this helps,
Barp - Control and Simulation Group - LabVIEW R&D - National Instruments -
sir
I am doing a PG project on fuzy logic control of robotic arm,In this first i need to write a code in LABVIEW fuzzy toolbox and interface that that code with PIC where motor is connected and a tachogenerator should be connected to motor to send speed to LABVIEW through PIC microcontroller where ADC is inbuilt in it.
Please help sir me whether it is possible to do that ,if not tell me do i require any interfacing device ,I am very new to labviewNow for this problem, Fuzzy can be easily used to control the plant. Here is the softwares that would help in this task:
- LabVIEW Full Development System (FDS) 2009 or later - The is the LV version that allow you accessing the latest Fuzzy Logic develoment
- LabVIEW PID and Fuzzy Logic Toolkit 2009 - This has PID and Fuzzy Logic functions available for you to develop your controller
- LabVIEW Control Design and Simulation Module 2009 - This is a complete set of functions that allow you to simulate and develop advanced control applications. In your case, you probably will be using this module for simulation of the DC motor.
Now, you also will need a way to read the encoder and control the voltage applied to the motor. You have several options from NI for that process. Probably a multi-function Board could help since they have digital counters and Analog Output signals. However, I can't recommend what would be best for this application, but the ideal platform is the CompactRIO platform for your application. They have a Real-Time controller and integrated Input/Output modules with signal conditioning that could allow you to directly drive the DC motor. I would advice to go to our webside (http://www.ni.com/compactrio/) and verify what this platform does. For this platform, you will also need the following sofrware:
- LabVIEW Real-Time Module 2009 - Allow you to develop you application in Real-Time for deployment.
Hope this helps.
Barp - Control and Simulation Group - LabVIEW R&D - National Instruments -
How to apply fuzzy logic into labview7.1
is it possible to appliment fuzzy logic into labview 7.1? if so, please advice how? i have try myself,but cant really understand all the block diagram of the fuzzy used by labview,please help, thanx.
Hello �
There are several example programs that ship with LabVIEW that can help you get started programming fuzzy logic.
In LabVIEW, go to Help >> Find Examples. When the NI Example Finder pops up, click on the Search tab and type �fuzzy� as the search keyword. �Fuzzy logic� shows up in the keyword results. Double click on it ant you will get 9 different examples that match your criteria.
I would recommend taking a look into:
- PR Example/Embedded Controller
- Pattern Recognition Example
- Tanks � Fuzzy DAQ
- Tanks � Fuzzy control PI
- Truck Control Example
Hope this helps!
S Vences
Applications Engineer
National Instruments -
After downloading & trying Fuzzy Logic with my new 845PE Max 2 (XP Prof) with a P4 2.533, I found it goes to re-boot (as it should) but when I try to put it into "turbo" the computer freezes & I have to unplug the power & wait a while before turning it on again. The power & reset switches stop working! Can anyone advise what's happening here & hot to fix FZLogic so it will work?
Quote
Originally posted by Tribeca
After downloading & trying Fuzzy Logic with my new 845PE Max 2 (XP Prof) with a P4 2.533, I found it goes to re-boot (as it should) but when I try to put it into "turbo" the computer freezes & I have to unplug the power & wait a while before turning it on again. The power & reset switches stop working! Can anyone advise what's happening here & hot to fix FZLogic so it will work?
I have the same problem with my 645E Max 2 LRU with a P4 2.4 Northwood. When I try to put it into "turbo" FuzzyLogic4 the pc freezes. Can it be that these boards was designed for FuzzyLogic3 but is delivered with a utility-cd with FuzzyLogic 4? Please help - anybody!! -
Hi...I want to learn the basic designing procedure for Fuzzy logic system. I already go through the docs. I need basic fuzzy logic system. Could anyone help me with this....
Hope you well today. and thanks for your reply. I am having very much eager to learn fuzzy logic in LabVIEW. I got one project paper which is so neat and very easy to learn to fuzz logic. based on that paper I was develop fuzzy logic such as membership functions. input and output variables. Now, my need is, how do design the block diagram of VI, which is having the graph, closed loop controlling etc. Can you guide me with this? For your look, I attached my block diagram screenshot.
Maybe you are looking for
-
Lost HD & Sport channels on black BT Vision box
Hi, I was advised to do a factory re-set on my black BT Vision box because it was performing so poorly but since doing so I can no longer get my HD or sport channels (BT Sport 1 & 2, Sky Sports 1,2 & 5) back. Prior to doing the reset I only had the H
-
Pulling data into IDM via ActiveSync Adapter
Hello, I am doing a proof of concept on IDM and am trying to import user data from MySQL table into IDM. I wrote an active sync adapter to do this so that whenever a new row is added to the MySQL table, the information is automatically fetched into I
-
Hi Is anybody familiar with this error, We get this error in production environment when the the dimensional mapping is getting executed. We are using OWB 9.2 and Database 9.2.0.5. I thought it was database issue, but I was curious to see something r
-
What is it directory path and where do i find it??
i am about to publish my website made with i web and i cant find path directory HELP
-
I'm practicing back-up/restore and I'm doing something wrong... Documents I've read say to: - Shutdown the server - Backup the DB (in this case mysql) - Tar the file store the input/out servers use. - Shutdown target server - restore DB backup - copy