View Single Post
  #3   Spotlight this post!  
Unread 17-03-2004, 21:26
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,571
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: stdlib.h for Dashboard Program

Is this what you are trying to do (in psuedo code)?

Read data from dashboard port (once every 1/38 second)
open file
write data to file
close file
repeat

It's possible after a thousand or so times of this, you are overflowing the buffer.

it may work better if you

open file
read data from dashboard port (once every 1/38 second)
write data to file
flush data (fflush)
repeat
close file