02-16-2006 11:18 PM
02-17-2006 08:48 AM
02-17-2006 10:21 AM - edited 02-17-2006 10:21 AM
I had a similar question recently. What I had in mind was to reduce the noise level on the feedback through averaging.
I learned that if you average over several control cycles, you can introduce instability to the control loop because of the propagation delay through the averaging 'filter'.
When averaging N feedback values in a control loop, my understanding is that you must acquire all N samples during a single control control cycle (increase the sample rate to N times the control loop rate, decrease the control loop rate by a factor of N, etc.).
dougs
Message Edited by Doug S on 02-17-2006 10:22 AM
02-20-2006 05:08 AM
02-21-2006 08:24 AM
If you want to use the timed loop look at the example "ContAcq&Graph Voltage-Int Clk-timed Loop". It will show you how to do the input side of things and all you should need to do is add the averaging and output. I don't know how "real time" this is going to be but you should be able to determine that by experimentation.
StuartG