01-19-2012 07:30 AM
Hi,
Is it possible to start "Fuzzy system designer" from a .vi so that the .fs file is loaded?
I would like to tune my rules and memberships. Now I must look for Tools -> Control... -> Fuzzy System Designer, then wait for it to load. After that I must find the right .fs file. It could be more easily to use if the operation is: press button which stops fuzzy controller, starts/change control to Fuzzy system designer. After that I can edit rules etc, save the system. Back to my .vi. Press button to load new fuzzy system.
Thanks in advance!
Seppo Rantala
01-20-2012 10:07 AM
To change parameters of Fuzzy WHILE the Fuzzy Controller, you have two options:
1. You need to use the programmatic API (LabVIEW 2010 and later) that allow you to change any parameter while the VI is running. Please look at documentation and examples "examples\control\fuzzy\Dynamic greenhouse controller\FuzzyEx Dynamic Fuzzy Controller for a greenhouse.vi" to see how to use the API.
2. You can automate the process you described below by place the load VI "inside the loop" and use a case structure to reload the controller after you modify the parameters with the existent tool. Notice that you do not need to stop the Fuzzy System Designer to operate your VI and you can modify the controller, save to a file and then, you can "reload" the controller, which will update all the parameters for you.
Hope this helps.
01-26-2012 03:57 AM
Hi Barp,
Many thanks for your help!
I have already checked the first option. The API is great addition, but unfortunately I don't have enought time to recreate the designer with it.
For the second option I have managed to get "load VI inside loop" working. I would like to change the default directory so that I don't need to search for the correct .fs file. It would be even nicer if the .fs file is loaded automatically. But I understand that this can be impossible.
Seppo
01-26-2012 09:01 AM
Seppo
On the contrary. The "Load Fuzzy Logic" has an input that allow you to specify a path to a model. If you just create a constant and browse to your file, the VI will automatically load the model without asking for the location.