08-31-2007 04:10 AM
Hi There,
Posting your code could be a great help. I do however wonder if you might be better off feeding the values to the PID loop and negating (multiply by -1) the output? Only a thought. The osscilation is also possibly a factor of the coefficients that you have chosen for your PID setup, have you played around with the setup values?
I look forward to your answers and code
AdamB
08-31-2007 07:36 AM
Here is the code. I am still thinking how to map the output to 0-10V valve control signal. 0V referes to fully closed and 10V referes to fully opened position of the valve.
Lalith
09-03-2007 09:46 AM - edited 09-03-2007 09:46 AM
Message Edited by TheWay on 09-03-2007 10:00 AM
09-05-2007 11:14 AM
Thank you very much for the comments. I was able to tune the PID controller and now it is working as I expected. Thanks for the support.
Lalith