LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

SD Write Test - File opening to rewrite

Solved!
Go to solution

Hi I have written a vi to try and work out if the write speed of the SD cards I am using in my 9802 module are up to writing at the data rate I need, however I now have the issue that when I reopen the SD card file, apart from when it opens for the first time, the size of the file doesn't actually change?

 

It seems that on the first open, ie when the file is created everything works perfectly, however as soon as the file closes it is write protected and therefore I can open it but not make any changes.

 

Any help would be greatly appreciated,

 

Dominic

0 Kudos
Message 1 of 2
(2,131 Views)
Solution
Accepted by topic author DominicRoberton

Ok,

 

I have basically solved this, it seems I was overwriting the data from the start of the file rather than appending to the end.....

 

A simple inclusion of a "get file size" and "set file position" solved it.

 

Cheers,

 

Dom

0 Kudos
Message 2 of 2
(2,110 Views)