National Instruments 371685C-01 Network Card User Manual


 
© National Instruments Corporation 2-1 LabWindows/CVI PID Control Toolkit User Manual
2
PID Algorithms
This chapter explains the fast PID, precise PID, and autotuning algorithms.
The PID Algorithm
The PID controller compares the setpoint (SP) to the process variable (PV) to obtain the error
(e), as follows:
e = SPPV
Then the PID controller calculates the controller action, u(t), as follows. In this equation, K
c
is the controller gain.
If the error and the controller output have the same range, –100% to 100%, controller gain is
the reciprocal of proportional band. T
i
is the integral time in minutes, also called the reset
time, and T
d
is the derivative time in minutes, also called the rate time. The following formula
represents the proportional action.
The following formula represents the integral action.
The following formula represents the derivative action.
ut() K
c
e
1
T
i
----
etd
0
t
T
d
de
dt
------
++
⎝⎠
⎜⎟
⎜⎟
⎛⎞
=
u
p
t() K
c
e=
u
I
t() =
K
c
T
i
-------
etd
0
t
u
D
t() K
c
T
d
de
dt
-------
=