06-01-2015 08:04 PM
Hey Guys,
I have written a code for a Fuzzy PID controller, which means I control the parameters of the PID based on fuzzy logic controller.
The problem is that when I connect the output of the fuzzy to the PID parameters, the output signal of the PID doesnt increase to find the goal. it stays constant.
If I write the parameters as constants it works, but when I connect it to the output of the fuzzy it doesnt!
Can anyone open my files and try to assist me?
Thank you
Solved! Go to Solution.
06-02-2015 01:12 PM
Have you had a chance to try debugging your code? It's possible that the output of your fuzzy logic VI isn't what you expect it to be. Take a look at the link below for some ways you can do this:
http://zone.ni.com/reference/en-XX/help/371361L-01/lvconcepts/debug_techniques/
06-02-2015 05:46 PM
Hey Scotia673,
Thanks for your attepmt to help, However, I don't think you understood my question,
I want to be able to continously change my PID gains.
It appears that the PID VI cannot handle PID gains which are continuously variable from iteration to iteration
I want the PID gains to change based on the output of every loop of the fuzzy Controller
Thanks,
06-03-2015 03:03 PM
It looks like you posted this question in this other post:
http://forums.ni.com/t5/LabVIEW/continuously-changing-PID-gains/m-p/3144317
I also spoke with my colleagues, who you worked with over the phone, and he informed me that you were able to resolve the issue by changing the case structure in your PID VI which was being used to determine whether the gains had been changed to prevent the PID buffer from being disturbed. Glad to hear you got this resolved!
06-04-2015 12:13 PM
06-05-2015 11:27 AM
You're welcome! Enjoy your weekend.