What does N represent in the PID formula (see image copied from the compensator tuning function)?
You are now following this question
- You will see updates in your followed content feed.
- You may receive emails, depending on your communication preferences.
An Error Occurred
Unable to complete the action because of changes made to the page. Reload the page to see its updated state.
Show older comments
Accepted Answer
Vidya Sagar Reddy Kurre
on 7 Jul 2020
Hello Oren,
N is Filter Coefficient.
Regards!
7 Comments
Hello Vidya,
Thank you for the quick repsonse.
I still don't understand what filer coefficient that is. Where is the filtering applied and what type of filtering?
Thanks again,
Oren
Hello Oren,
The derivative gain of the PID controller is never implemented as pure cause it would be extremely sensitive for noise. To avoid the noise, Filter Coefficient is added to the Derivative. It is kept to minimum, and is called low-pass filter. More explanation on this can be found in the following links
Hope this is helpful. Regards!
Thanks Vidya! This is very helpful!
Hello Oren,
Hope you accept the answer! And it provided better understanding on the concept.
Thank You! Regards.
Hello Vidya,
Yes, thanks. I was confused since the "N" appeared like some integer, but after watching the video you suggested, I understood that this is just some coeficient like "a", represeting a pole (low-pass filtering to supress high frequencies) and it does not represent an integer.
My interest is in the context of a PID controller for a switched-mode power supply (i.e. voltage ragulation based on PWM), where it is customeray to have such pole in the feedback path (what Brian calls "sensor" in his video), but is the intent here that the filtering is only in the derivative path of the PID? I don't see a diagram.
Thanks again,
Oren
Vidya Sagar Reddy Kurre
on 8 Jul 2020
Edited: Vidya Sagar Reddy Kurre
on 8 Jul 2020
Hello Oren,
The below image might help you understand the Filter application.

The same is explained at 09:38 duration in the first video link.
Thank You!! Regards.
Hello Vidya,
Ok, now I understand the structure. So the presence of this filter seems to be the defualt strcuture for the PID controller assumed in Simulink. In my application this is a discrete-time PID compensator for which no such filtering is in the D path. However, there is an analog low-pass filter in the output sensing, which gives an equivalent effect (doesn't matter much that it also acts on the signal that is also fed into the P and I branches). Now I noticed that there is a selection "use filtered derivative", which I can simply unselect to reduce the D path to simple derivative.
Thanks again,
Oren
More Answers (0)
Categories
Find more on State-Space Control Design and Estimation in Help Center and File Exchange
Products
See Also
on 6 Jul 2020
on 9 Jul 2020
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
