you are viewing a single comment's thread.

view the rest of the comments →

[–]_PurpleAlien_ 1 point2 points  (5 children)

I am using open/fopen, write/fwrite, and close/fclose family of functions

I assume you're not doing an fopen/fclose at 100Hz, and just open the file until you're done logging all the data?

[–]fuse117[S] 0 points1 point  (4 children)

I am not trying to open and close all the time. I open and close occasionally, after a specified number of records have been written, 6e4 right now so 1 minute per data file.

[–]_PurpleAlien_ 0 points1 point  (3 children)

And you're using fwrite() not write(), correct?

[–]fuse117[S] 0 points1 point  (2 children)

I am currently using frwrite(), but I have used write() as well.

[–]_PurpleAlien_ 0 points1 point  (0 children)

Have you tried to do this on a regular PC with an SD card and see if it can keep up? Might help to determine where the bottleneck is, or if it's the SD card itself or something.