View Single Post
  #2   Spotlight this post!  
Unread 10-03-2014, 12:30
Jon Stratis's Avatar
Jon Stratis Jon Stratis is offline
Electrical/Programming Mentor
FRC #2177 (The Robettes)
Team Role: Mentor
 
Join Date: Feb 2007
Rookie Year: 2006
Location: Minnesota
Posts: 3,738
Jon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond repute
Re: Setting the real time clock and date on cRio

Messing with the clock on there can be tricky, as I understand the clock resets every time the cRio is powered off (I'd love to be correct, if my understanding is based on wrong information!).

It might be better to number your files instead - log1.txt, log2.txt, etc. You could keep the current number for the log file in a config file and just read it in, use it, then increment and overwrite the value in the config file for next time. Then the most recent log file would have the largest number on it. For easy searching/organization, I would recommend using 3 or 4 digit numbers at all times (001 instead of 1, for example) - otherwise you'd end up with something like
log1.txt
log10.txt
log2.txt
log3.txt
etc
__________________
2007 - Present: Mentor, 2177 The Robettes
LRI: North Star 2012-2016; Lake Superior 2013-2014; MN State Tournament 2013-2014, 2016; Galileo 2016; Iowa 2017
2015: North Star Regional Volunteer of the Year
2016: Lake Superior WFFA
Reply With Quote