There needs to be some application listening to the serial port. That application needs to collect the serial data, and write it to a file, with commas between the values, and save the file with a .csv extension.
What part of this do you need help with?