Hi,
I'm currently setting up a myoware sensor attached to an arduino, and I require millisecond timestamp data alongside the voltage data for my research.
I've set everything up and everything seems to be find, however I am having trouble with the timestamps splitting up the strings I'm trying to print alongside them.
This is a sample of what it looks like:
11:35:34.676
V: 180
11:35:34.692 3.52
11:35:34.692 V: 1813.
11:35:34.708 29
V:
11:35:34.708 1798.63
11:35:34.727 V: 1793.
11:35:34.743 74
V: 180
11:35:34.743 8.41
11:35:34.758
V: 1808.41
11:35:34.774
V: 1793.7
11:35:34.774 4
Should I be printing the timestamps in the arduino code instead? or is there something else I need to be doing in coolterm. I'm very new to this so any help is much appreciated!
Thanks!
Emma
Timestamps splitting up string on data capture
-
- Posts: 2
- Joined: Wed Jan 04, 2023 5:41 pm
- roger
- Site Admin
- Posts: 485
- Joined: Fri Apr 24, 2009 12:41 am
- Contact:
Re: Timestamps splitting up string on data capture
Hi Emma,
I recommend turning on the option to wait for line endings. That way CoolTerm won’t prefix the received data with a time until a line ending is received. That, of course, requires the received data to be terminated with line endings (CR, LF, or CR+LF) after each line of data.
I hope this helps.
Roger
I recommend turning on the option to wait for line endings. That way CoolTerm won’t prefix the received data with a time until a line ending is received. That, of course, requires the received data to be terminated with line endings (CR, LF, or CR+LF) after each line of data.
I hope this helps.
Roger
-
- Posts: 2
- Joined: Wed Jan 04, 2023 5:41 pm
Re: Timestamps splitting up string on data capture
Hi Roger,
Thanks for that and my apologies for the late reply.
I've done your recommended steps and changed a couple of other settings and now the timestamps are not breaking the string (yay), however the timestamps + data that are being printed to the text file do not match the data in the coolterm interface.
I cannot work out how to attach an image to the forum post, otherwise I would show, but it is off by one and some timestamps are printing multiple times.
Regards,
Emma
Thanks for that and my apologies for the late reply.
I've done your recommended steps and changed a couple of other settings and now the timestamps are not breaking the string (yay), however the timestamps + data that are being printed to the text file do not match the data in the coolterm interface.
I cannot work out how to attach an image to the forum post, otherwise I would show, but it is off by one and some timestamps are printing multiple times.
Regards,
Emma
- roger
- Site Admin
- Posts: 485
- Joined: Fri Apr 24, 2009 12:41 am
- Contact:
Re: Timestamps splitting up string on data capture
Hi Emma,
you can go to "About CoolTerm" in the menu and it will show my e-mail address. You can use that to send me screenshots, etc. Please also send my your settings files, and I'll take a look at your settings.
Roger
you can go to "About CoolTerm" in the menu and it will show my e-mail address. You can use that to send me screenshots, etc. Please also send my your settings files, and I'll take a look at your settings.
Roger