The labview "Complete Integration for Camera" was modified to save data properly. The issue now was that the VI was too fast with averging of 1st order and there were same points being repeated in the dataset. Some changes were done as follows:
1. Added clear buffer for the averaging filter which is triggered when the number of iterations of averaging loop equals the averging order.
2. Added timer inside the averaging loop to make it a bit slower depending on what averging order you do. So, for different order you have different speed. Because the data saving was fine with averging order of 10, but was saving same data 4 times for averging order 1.