I've looked over the documents fairly well and I can find where you can tag each line of data with the date and time and also tag the date and time to the filename.
I'm looking for something very simple. I just want to be able to get the date and time from the PC and send it to the Arduino. It's probably very simple but I haven't found it yet.
I also haven't seen any examples where the data and time are displayed on one of the Visualizers.
One document mentioned a "time library" but I can't seem to find it.
Thanks
Rod
Interface time function
Phil,
I'm so glad you posted this. Yes, I did find it when I was searching. I can't make much sense of it. DateTime.Now Round?
Subtract? Number, number??
I realize it returns the number of seconds since 1970. I don't want that.
Where can I find a table of these commands? It seems there must be a huge table of commands I am missing.
Many languages approach this a little differently. Like x = Time. Y = Date.
Thanks
Rod
I'm so glad you posted this. Yes, I did find it when I was searching. I can't make much sense of it. DateTime.Now Round?
Subtract? Number, number??
I realize it returns the number of seconds since 1970. I don't want that.
Where can I find a table of these commands? It seems there must be a huge table of commands I am missing.
Many languages approach this a little differently. Like x = Time. Y = Date.
Thanks
Rod
I found something that almost works.
I created a button and attached this:
!Time [TimeDate.Now]\r\n
If I hit that button the correct data goes out and the Arduino gets it.
However, I also have a button that sends many (12 commands). I did increase the commands in the declaration.
Although the message monitor shows the proper data going out, the Arduino only seems to get it 10% of the time.
I have tried baud rates from 4800 to 19200, increased the serial buffer to 200 bytes and changed the order the commands were sent. Interestingly moving the Time command from the back of the list to the front still produced the same results, the time command appeared last in the list of data going out. Nothing seems to work.
I guess the problem is on the Arduino side. Perhaps if there was a way to slow down some of the commands, like the "pacing term" in some languages.
Getting there.
Rod
I created a button and attached this:
!Time [TimeDate.Now]\r\n
If I hit that button the correct data goes out and the Arduino gets it.
However, I also have a button that sends many (12 commands). I did increase the commands in the declaration.
Although the message monitor shows the proper data going out, the Arduino only seems to get it 10% of the time.
I have tried baud rates from 4800 to 19200, increased the serial buffer to 200 bytes and changed the order the commands were sent. Interestingly moving the Time command from the back of the list to the front still produced the same results, the time command appeared last in the list of data going out. Nothing seems to work.
I guess the problem is on the Arduino side. Perhaps if there was a way to slow down some of the commands, like the "pacing term" in some languages.
Getting there.
Rod
Hi Rod, the arduino has a 64 byte serial buffer. You might need to increase it manually. This could help
https://folk.uio.no/jeanra/Microelectro ... uffer.html
Otherwise yeah having so many commands in one message will be the issue. Maybe you could shorten the commands to use less characters?
Cheers
Phil
https://folk.uio.no/jeanra/Microelectro ... uffer.html
Otherwise yeah having so many commands in one message will be the issue. Maybe you could shorten the commands to use less characters?
Cheers
Phil