Using arduino time on a TIMEPLOT

Support forum for MegunoLink
Post Reply
thamesmud
Posts: 2
Joined: Sun Jan 11, 2015 9:01 pm

Sun Jan 11, 2015 9:26 pm

Hi,
I'm probably being dense but I can't get a TIMEPLOT to read arduino time to a better resolution than 1 sec , YYYY-MM-DD HH:MM:SS works fine but
YYYY-MM-DD HH:MM:SS.000 with decimal seconds fails. When I use "T" (PcTme) TIMEPLOT's resolve time to milliseconds, what I want to do is send time in milliseconds from the Arduino, Is this possible ? I can use an XYPLOT and send milliseconds but the XYPLOT won't scroll which is a pain.
Any Ideas what I'm doing wrong or suggestions for a work-around greatly appreciated.
Thanks
Bob
thamesmud
Posts: 2
Joined: Sun Jan 11, 2015 9:01 pm

Mon Jan 12, 2015 5:13 pm

HI,
Just found that C# can parse a long as a timestamp.
{TIMEPLOT|DATA|rawGyroX|140834076|-6.07} still result in no data on plot.
( timestamp = 1970-01-02 16:07:14.076 )
I'm one puzzled pom !
philr
Posts: 279
Joined: Mon May 26, 2014 10:58 am

Wed Jan 14, 2015 9:06 pm

Hi, I think this is a bug. We will investigate and hopefully get it fixed in the next update.

Cheers
Phil
bbrandell
Posts: 1
Joined: Sat Feb 07, 2015 11:59 pm

Sun Feb 08, 2015 12:09 am

Hey Phil,

This would be a great bug fix to have. I LOVE your circular buffer template class and am using it to store sensor data with time stamps from multiple analog inputs using widely varying sample rates. I'm using the OCR registers in Timers 3,4, 5 of my Mega to do the sampling using interrupts, with ISR sticking the raw analog data, timestamp, and a pointer to a sensor class object. My "loop" just pulls the data off, calls the sensor class method for converting the raw data and formatting it for output to megunolink. Makes for a pretty easy way to do multiple sensors with individual sampling rates and get the data up for viewing on my PC. AND it's dirt cheap...

Thanks for a great product.
philr
Posts: 279
Joined: Mon May 26, 2014 10:58 am

Mon Feb 16, 2015 4:29 am

This should now be fixed. Details on formatting can be found about half way down this page.

http://www.megunolink.com/documentation ... reference/

Cheers
Phil
internetizen
Posts: 3
Joined: Tue Mar 08, 2016 5:59 am

Tue Mar 08, 2016 6:22 am

any example to show how to use Arduino time instead of PC time? Thanks
Post Reply