Quote:
Originally Posted by Phalanx
I was looking at the Analog Open.VI and I believe I see it setting the sampling rate to 50K for all 8 of the channels by default. Is this correct or I am misunderstanding it?
|
Correct
Quote:
Originally Posted by Phalanx
There are VI's to change the sampling rates, set oversampling and averaging bits, however, I don't see anywhere a simple averaging of samples.
If I'm sampling at 50K I believe you could easily average every 100 samples to obtain a steadier signal at the expense of some lag.
Is there sample averaging being done by the FPGA that I'm not seeing? If so can someone tell me what it is? Is there something I'm missing that allows me to configure this
|
Yes, the FPGA does averaging, if you configure it, using the set averaging bits VI. Rather then telling it to oversample or average 100 samples, you would tell it to oversample or average 6 bits (64 samples) or 7 bits (128 samples). It takes less space in the FPGA to set up accumulators in powers of 2 then arbitrary numbers of samples. There are details here:
http://wpilib.screenstepslive.com/s/...-analog-inputs (geared more towards C++ and Java, but still apply).