Another way to do it is to use the Sample Compression Express VI. It can return the mean of a certain number of points. If your data points are coming in a regural manner, you will be able to use this. Attached is an image of the diagam that will do what you are looking for.