Re: PID question



hondgm@xxxxxxxxx wrote:
(snip)

On your
next post where you say that "you must allocate several samples to your
desired response time", do you mean that I should be taking an average
of several samples before feeding it into the PID loop?
(snip)

Not at all what I think he meant.

Each sample you take must be used as quickly as possible, to minimize time delay inside your control loop.

I think what he meant was that it takes many cycles of your sample and control algorithm to restore the system to setpoint, after a disturbance, so just because you can sample and cycle your program 100k times per second, don't expect to recover, completely, from a step current error much faster than 10 to 100 sample times (100us to 1000 us), especially with load impedances other than for what the control loop tuning was optimized.
.



Relevant Pages

  • Re: PID question
    ... desired response time", do you mean that I should be taking an average ... Each sample you take must be used as quickly as possible, to minimize time delay inside your control loop. ... I think what he meant was that it takes many cycles of your sample and control algorithm to restore the system to setpoint, after a disturbance, so just because you can sample and cycle your program 100k times per second, don't expect to recover, completely, from a step current error ...
    (sci.electronics.design)
  • Re: Easter Eggs and Security
    ... introducing security vulnerabilities. ... by a tiny easter egg interfere with? ... Maybe those clock cycles /could/ be better used. ...
    (comp.security.misc)
  • Re: PID question
    ... Each sample you take must be used as quickly as possible, to minimize time delay inside your control loop. ... especially with load impedances other than for what the control loop tuning was optimized. ... Because it is digital he KNOWS the voltage. ...
    (sci.electronics.design)
  • Re: PID question
    ... minimize time delay inside your control loop. ... Then he connects some load and the sampled ... Because it is digital he KNOWS the voltage. ...
    (sci.electronics.design)
  • Re: Float/SSE optimization on Athlon/P4
    ... > iadd is a constant which gets computed outside of the time critical code ... Then you can keep edx as the integer part and use adc to carry into ... cycles which is 3-5 times faster than what you had before. ...
    (comp.lang.asm.x86)