You probably want to use a chart. Place it inside a while loop that runs continuously. The chart should be in a case structure so it is bypassed depending on the boolean pause/continue switch.
To save the data, get the "history data" of the chart via a propery node and save it to a file. It is probably easiest to save it to an ASCII file. Most other programs will be able to read it.
See how far you get. If you get stuck, post your VI and we'll help you.
🙂