01-13-2006 08:43 AM
01-13-2006 01:17 PM
Here's an answer and how I arrived at it:
I'm supposing your 100 Hz sampling rate is based on a true internal hw clock making the encoder's "500 ppr" resolution irrelevant to the problem. With 100 Hz sampling, you have an interval of 10 msec between samples. So when your loop reads 5 samples at a time, they represent 50 msec worth of data. When you average them down to a single value that's stored to file, you are storing a single value every 50 msec for an effective sampling rate of 20 Hz.
-Kevin P.