You posted to the TestStand board, but this problem would be better suited for Labview. In Labview, you could have a loop that reads the DAQ. In another loop, you could have a timer that waits the required time, then gets the DAQ values, add the values and divide by the number of values. The loop repeats and waits again until it is time to calculate the mean. See attached vi.