sending a carriage return to data logger?
javelin nuby
Posts: 27
I'm tring to send 16 data points (int.) to the data logger.
I've been able to convert the int. to chr. and log them.
The problem is the next set of data is on the same line as the first.
How do I send a CR to the data logger so that the next set of data is on the next line when I open the file with excel or notepad on my pc?
I've been able to convert the int. to chr. and log them.
The problem is the next set of data is on the same line as the first.
How do I send a CR to the data logger so that the next set of data is on the next line when I open the file with excel or notepad on my pc?
Comments
If you use the DataloggerSPI class,
you can use
myLogger.writeToFile("\r\n",2,0);
after writing a line of data.
regards peter
The
Logger.writeToFile("\r\n",2,0);
works. Thank you again.
Can I use the same code if I switch to the DataloggerUART class?
and pass those to the DataloggerUart constructor.
All the methods available are in file Datalogger.java
regards peter