mrmainwoods Posted February 9, 2009 Share Posted February 9, 2009 I am attempting to write files to a database at the half hour using a sequence. This is what I have been able to get so far using some other resources in the forum. private nexttime = floor(systime()/1800) * 1800 + 1800 // calc next half hour point while (1) waituntil(nexttime) here is what I would like to do with the data db. open a database table using ODBC db. store a date to the table db. store a time to the table db. store a bunch of channels and v channels to the table nexttime += 1800 endwhile Standard logging is not really what my client desires as far as time stamps go since I would have to store a sample per minute to give him the accuracy he desires, and getting it to be timed properly is a bit of a problem. Appreciate any help! GP Link to comment Share on other sites More sharing options...
This topic is now archived and is closed to further replies.