Our full technical support staff does not monitor this forum. If you need assistance from a member of our staff, please submit your question from the Ask a Question page.


Log in or register to post/reply in the forum.

Daily email data retrieval


BenEvans Oct 4, 2012 05:08 PM

As per the title.
I'm looking for a way of writing data to a file on a daily basis, then emailing that file.

Consequently I'm looking to create a file on a daily basis, containing all entries in the data table for the preceding 24 hours, but none preceding that time. I can't see a means of doing this within the TableFile instruction so was thinking of dragging the data out of the original table one line at a time using GetRecord, then, once the new table is populated, write the file. I don't want to then keep the file, as it will be clogging up the logger, so would like to clear the table so that I can use it again the next day.

If anyone has any suggestions on how to either create files from the most recent n records in a table, or has some means of emptying a data table at will, I'd be very grateful.


GaryTRoberts Oct 5, 2012 03:16 PM

Retake a look at the TableFile instruction (look specifically at interval). You can write a file either based on time (once every day) or by number of records (every 150). Then, if you have an Ethernet interface, you can send the created file via EMailSend.

* Last updated by: GaryTRoberts on 10/5/2012 @ 9:20 AM *

Log in or register to post/reply in the forum.