You didn't implement the most important part of my code (see attached "AppendDataArray.JPG"). This part of the code appends the acquired data to an array until it reaches the size of 800 points. After that, the data is still appended, but the old part of the array gets removed to keep the size of the array at 800 points.
Awesome..... thanks a lot philip it works perfectly!!!now I can complete my thesis on time...Thanks a lot once again With out your help it would have taken me forever.....