Hi Chris,
I think your error equation is a little off. If you refer the manual for the PID control toolkit you can find more detailed information regarding this.
The following formula represents the current error used in calculating
proportional, integral, and derivative action.
e(k) = (SP PVf)(L+(1 – L)*|SP – PVf|/SPrange)
where SPrange is the range of the setpoint, β is the setpoint factor for the Two
Degree of Freedom PID algorithm described in the Proportional Action
section of this chapter, and L is the linearity factor that produces a nonlinear
gain term in which the controller gain increases with the magnitude of the
error. If L is 1, the controller is linear. A value of 0.1 makes the minimum
gain of the controller 10% Kc. Use of a nonlinear gain term is referred to as
an Error-squared PID algorithm.
For more information check out section 2-4 of the PID Control Toolkit User Manual (http://www.ni.com/pdf/manuals/372192b.pdf),
Thank You,
Eric Reid
Thank You
Eric Reid
National Instruments
Motion R&D