From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Power Electronics Development Center

cancel
Showing results for 
Search instead for 
Did you mean: 

PID Derivative Gain

How to use PID derivative gain? Is there any help file about that? Thanks

0 Kudos
Message 1 of 2
(3,890 Views)

Here is the online help documentation for the LabVIEW PID and Fuzzy Logic Toolkit:

http://zone.ni.com/reference/en-XX/help/370401J-01/

More specifically you might be interested in this topic:

http://zone.ni.com/reference/en-XX/help/370401J-01/lvpidmain/pid_vi_algs/

If you are looking for a tutorial that explains how PID derivative gain works and how to tune a PID control system, you might be interested in this presentation and white paper.

http://zone.ni.com/wv/app/doc/p/id/wv-246

http://www.ni.com/white-paper/3782/en

If you want to understand how derivative gain effects the frequency response of your control system, you might also be interested in the Power Electronics Design Guide example "Test Frequency Response PID+Notch+LPF (Windows) v06.vi". It's located in the LabVIEW Project under My Computer>IP Cores - LabVIEW FPGA>Control & Signal Gen>Testbench.

As you can see below, with this particular combination of PID gains, a derivative time of 1E-5 minutes, causes the gain of the PID control system to increase at frequencies above 595 Hz.

PID Frequency Response, 1e-5.png

Now let's increase the derivative gain two orders of magnitude to 1e-3. Notice that now the high frequency gain is actually greater than the DC gain of the control system. This is the main challenge you'll run into with derivative gain-- it amplifies high frequency noise. In this case, since the high frequency gain is greater than the DC gain you are almost gauranteed the control system will be unstable.

PID Frequency Response, 0.001.png

Okay, but what if we need derivative gain at lower frequencies to add damping to the control system-- effectively acting like a resistor at higher frequencies? How about addind a low pass filter in series with the PID control system? Here we have the same PID gains as above but we've added a 4th order low pass filter with a cutoff frequency of 1 kHz. See how the gain of the control system rolls off above 1 kHz and doesn't go above the DC gain. Furthermore, the derivative action gives us damping between 189 Hz and 1 kHz.

PID Frequency Response, 0.001 with LPF.png

Message 2 of 2
(2,869 Views)