natraj20
Member level 3
I would like to sample analog values from a pressure at 2 kHz and would like to have a small buffer for the latest values (say 100). So at each sample point, the latest sampled value should replace the oldest value in the buffer. At each instant, i need the average of this 100 values as the result but averaging 100 values is a lot of time especially when the results should be in real time and the sampling rate is high.
Any suggestions on reducing the time delay introduced by the calculation or efficient way of creating a buffer ??
Any suggestions on reducing the time delay introduced by the calculation or efficient way of creating a buffer ??