04-03-2008 01:20 PM
04-07-2008
11:47 AM
- last edited on
08-17-2025
04:54 PM
by
Content Cleaner
Hi rocksolidsr,
If you only want the flow to be in the forward direction, you may want to try limiting the output to between 5 and 10 V. The reason is that, when you first change the set point from 0 to 10 V, the output is currently below 5 V, so that the valve is actually allowing flow in the reverse direction, which is undesireable. You can set this using the Output Range input of the PID Autotuning VI.
Regarding the outputs you are currently seeing, these are definitely the expected values for the current PID gains you have set up. When your process variable and set point are equal, you will have an output of 0 because you are only using proportional control. If you want better steady-state stability, then you should incorporate integral and derivative control as well.
In fact, there is a section of the PID Control Toolkit User Manual that is dedicated to manual PID tuning. The section starts on page 3-3. You may want to try following this procedure to see if you are able to get better results from your controller.
I hope this helps.
Rishee B.
Applications Engineer
National Instruments
Message Edited by risheeb on 04-07-2008 11:48 AM