title: Averaging for continuous data in flaot format
body: <p>I am from engine testing field.<br>
  I want to average engine exhaust pressure value which is coming at 1Hz frequency continously.</p>
  
  <p>I have to log this pressure value by doing its averaging by 10.</p>
  
  <p>Someone please show me code for the same in vb langauge.</p>
  
  <p>I tried  with the following code</p>
  
  <pre><code>Dim averageData (9) as double
  Dim dummyVar as integer
  Dim sum as integer
  Dim number as integer
  </code></pre>
  
  <p>For number 1 to 10<br>
  From here I have to take data in array and take summation of the array elements and average it. After this I have to flush the array for new set. This script will run continuously until late testing is going on.</p>