Need help in sd.write command.
When 1st time i create new file then make some fields but program does not create field. Here is my code & result.
Here is the code
Code: Select all
//check file existance if not found then
// create new file & close file.
//now open file & write some data & close file
If SD.FileExists(FileName) = false Then
If SD.NewFile(FileName) = errOK Then
SD.Write("TIME")'T
SD.Write(#58)
SD.Write("DATE")'D
SD.Write(#58)
SD.Write("B-VOLT")
SD.Write(#58)
SD.Write("S-VOLT")
SD.Write(#58)
SD.Write("AMP")
SD.Write(58)
SD.Write(#13,#10)
SD.CloseFile()
EndIf
EndIf
Code: Select all
:::::
it will never print as i write code like this.
TIME:DATE:B_VOLT:S_VOLT:AMP
Can some one guide me whre is the problem.
After this write another code which will log data in file. That is working perfect below is example.
Code: Select all
:::::
133539:20091115:00.6V:00.3V:00.5A
133548:20091115:00.7V:00.3V:00.5A
133556:20091115:00.8V:00.3V:00.5A
133604:20091115:00.7V:00.3V:00.6A
133612:20091115:00.7V:00.2V:00.5A
133620:20091115:00.7V:00.3V:00.5A
133628:20091115:00.7V:00.2V:00.5A
Regards