Hi All, is there a possibility to write the sensor output which you can see at the console output in the xdk workbench to a local csv file or DB? i tried to use the fwrite() function but the code was not building the .out file for some reason. Does somebody know how to write the console output to a local file, while the xdk is connected via USB to my laptop. i do not want to use wifi to transmit the data. write the data to SD card is also not an option for me. my c code: static void writefile(void) { int n; struct threeNum num; FILE *fptr; if ((fptr = fopen("...localstorage...\\text.txt","wb")) == NULL){ printf("Error! opening file"); // Program exits if the file pointer returns NULL. exit(1); } for(n = 1; n < 5; ++n) { num.n1 = n; num.n2 = 5*n; num.n3 = 5*n + 1; fwrite(&num, sizeof(struct threeNum), 1, fptr); } fclose(fptr); }
... View more