Thread: file i/o
View Single Post
  #3   Spotlight this post!  
Unread 23-03-2009, 08:25
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,751
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: file i/o

To avoid as many changes to your tele, I'd build the array in the tele -- either keep all drive values, or encode them as dT and dDrive. After tele is over, save it to a file by opening writing, and closing. You may also be able to use the Write to binary file and a Close, but I'm not sure if RT will raise the file dialog correctly. You should be able to do file I/O at a pretty good clip, so if you'd rather do it in the loop, go ahead, but don't open and close it for each element you write, or the overhead will cause changes to how your program behaves.

Greg McKaskle
Reply With Quote