LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Fuzzy system designer

 

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

0 Kudos
Message 1 of 4
(3,625 Views)

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.

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

 

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

0 Kudos
Message 3 of 4
(3,585 Views)

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.

 

SelectModel.png

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