Serial Data, Writing to a Text File
in
Core Library Questions
•
1 year ago
Hi,
I have got data coming in from serial output, brainwaves, through an arduino uno, being graphed in proccessing. I really need to know how to write the incoming data to a .txt file for use in matlab. the data is being printed in the proccessing window in the form
[0] "51"
[1] "0"
[2] "0"
[3] "635974"
[4] "452180"
[5] "176756"
[6] "51753"
[7] "264251"
[8] "149330"
[9] "47979"
[10] "126161"
I need it exported to a .txt file in the form
51,0,0,535974,452180,176756,51753,264251,149330,47979,126161
followed by a line of the next 10 values.
Any help would be extremley helpful and i would be very grateful
Andy
1