Pages: [1]   Go Down
Author Topic: Windows Errors on opening SD card file  (Read 488 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Full Member
***
Karma: 1
Posts: 226
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi,

my lcd shows me "SD" as long ardu is writing to SD / file not closed, so i can pull it out when ardu isnt writing, but no matter when i pull out the SD card i get an error on opening the csv log file in windows.
windows is giving some messages like that atleast one piece of data is corrupted. i can still open the file and everything is perfect, no errors or whatsover inside.

what can i do to not get those messages/ what is the reason for that message?
Logged

0
Offline Offline
Edison Member
*
Karma: 44
Posts: 1472
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

If you remove the SD without closing the file you will most likely have a corrupt file.  Closing the file updates the directory entry for the file and insures the SD file structures are consistent.

If you check the SD for errors with the windows, the volume will probably have problems.

In Windows right click on the SD and select properties then click on the tools tab then click "Check now..."  under Error-checking.

If closing the file before removing the SD doesn't fix the problem post the exact Windows message and describe the app that was used to open the file
Logged

Offline Offline
Full Member
***
Karma: 1
Posts: 226
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi,

Windowscheck: everything fine

opening the csv file in excel (my translation would be): "cant read data record 1. If there are more, show other errors? yes/no"
"excel noticed the file log.csv is a SYLK file, but cant load the file. either the file is corrupted or it is no actual SYLK file. Press OK to open in other format"

on pressing ok and opening the file its perfectly fine, no corruption, no errors, no missing records.


Reading about SYLK stuff its coming because the first entry in the file is ID.
So setting "data record 1" into that context, that also must be the reason for that error
Logged

Offline Offline
Full Member
***
Karma: 1
Posts: 226
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

funny

changing the header into #ID instead of ID and no more errors
Logged

0
Offline Offline
Edison Member
*
Karma: 44
Posts: 1472
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Wow!  Looks like you are hitting every pothole.  The SYLK trap is a good one.
Logged

Pages: [1]   Go Up
Jump to: