Page 1 of 1

SD Card carriage return

Posted: Tue Jul 16, 2013 9:33 pm
by mb101
Hi,

I've been trying for a while to get a carriage return written to a text file on SD card using the "Append_String_To_File" macro without any luck. I even tried converting the ascii / hex for a carriage return by various functions by still no joy. I've had a good look around but cannot find any similar posts, has anyone done this before or can you point me in the right direction? Pic / SPI / SD card all working fine, just the carriage returns. Or do I need to goto block write with "Write_File_Sector"?

Thanks in advance :P

Regards

Mark

Re: SD Card carriage return

Posted: Fri Jul 19, 2013 11:18 am
by Benj
Hi Mark,

Have you tried this in the string?

"test line \n"

if this doesn't work then you could try.

"test line \\n"

Otherwise you can assign this to a string variable and then use the string variable with the append string function.

CRstringvar[0] = 13
CRstringvar[1] = 0