01-28-2009 02:19 PM
I have several questions pertaining to the LabVIEW WPI interface subVIs for acquiring analog signals, especially with regards to averaging.
1) Is there a behind the scenes difference between setting "AverageBits" and "OversampleBits" other than the latter does not include a bit shift? If the "GetAverageVoltage" VI is used is there any advantage of setting the "AverageBits" above zero?
2) If there is an advantage of using "AverageBits", can it be used in tandem with "OversampleBits"?
3) How do setting "AverageBits" and "OversampleBits" above zero affect the sample rate? For example, does setting "AverageBits" to four mean that a new sample will only be available SlotSampleRate/2^4 as often? Does the same apply for "OversampleBits"
I apoligize if these are somewhat confusing questions. As part of implementing an accelerometer integration routine I am seeking to fully understand how the analog signals are being acquired.
01-28-2009 03:48 PM
I've found that the best documentation of these sorts of things is the "C/C++ Programming Guide for the FIRST Robotics Competition" availible from http://first.wpi.edu/FRC/frcupdates.html