When I ask for a time stamp along with my sensor data, it appears nicely on the serial monitor screen just like the text supplied by my sensors.
BUT, when I read the data coming across the serial port (using python) the timestamp does not show.
I am assuming it is sent to the serial monitor via the serial port but apparently this is not true. How, then, does the time stamp arrive on the serial monitor if it is not coming from the serial port?
Or, more importantly, how can I capture the time stamp along with my data?
I realize there is such a thing as an RTC but I am trying to do this just in the software.
How does the timestamp arrive on the serial monitor without passing through the serial port?
Please post the software using code tags.
All print outs sent to serial monitor is in ASCII. The value 1234 is sent as the ASCII characters for "1", "2", "3" and "4". It's not sent as the numerical value 1234 which is very different, likely a 2 byte integer.
The timestamp is added to the Serial monitor by the IDE software running on the PC. It does not come from the Arduino Serial port
As you suggest, you could use an RTC to timestamp your data or if your Arduino board can establish an Internet connection then you could get the time from an NTP server.
Because it is added in the serial monitor, by the ide software, only if you tick the checkbox 'show timestamp', it was never sent along the serial line... unless you send it explicitely, in your code.
You've got the explanation by now.
Posting the text had shown what You were telling. Words only are often unclear.
Personally I've never used/seen any timestamps.
It really is a Serial monitor as it enables you to see data coming from the Serial port. The fact that more information is added to it does not change that fact
Don't understand.
The serial monitor is a serial monitor with some useful options ( autoscroll and timestamp ).
The timestamp is very useful ( as it can timestamp in 'human readable format' even if your board has not an rtc )
BTW, you should note that since the timestamps are generated on the PC side, they have a "granularity" that is dependent on the PC's scheduler, which is ... relatively coarse.