02/07/15

Dependencies:   mbed

Dependents:   TabbedGUIMbed

Revision:
71:60f06e7e50a3
Parent:
70:168d67695a65
--- a/Data.cpp	Thu Sep 03 15:10:51 2015 +0000
+++ b/Data.cpp	Thu Sep 03 15:32:01 2015 +0000
@@ -1,12 +1,13 @@
 #include "mbed.h"
+#include <string>
 
 LocalFileSystem local("local"); 
 extern Serial pc;
 
-void initialise(int counter )
+void initialise(int counter, string date )
 { 
     FILE *fp1 = fopen("/local/Datalog.xls", "a");       // opens or creates fill Datalog, 
-    fprintf(fp1, " Test %d \n", counter);                   //gives header
+    fprintf(fp1, " Test %d \n %s \n", counter, date);                   //gives header
     fprintf(fp1, " Sensor \t Total Time \t Time Diff \t Inst Speed \t Avg Speed\n");                    //writes field names
     fclose(fp1);                                            //closes the file so it can be opened by another method
 }