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.
Good luck!
- Philip Courtois, Thinkbot Solutions