Shop OBEX P1 Docs P2 Docs Learn Events
Data Logging — Parallax Forums

Data Logging

Robert KRobert K Posts: 6
edited 2009-01-10 18:41 in BASIC Stamp
Hello ,
task seems to be simple, to record to USB stick temperature and humidity using DataLogger (Parallax). I can deley, create, open, close, write into etc, but writting into USB stick all my numbers are in the row (123451234512345).
How to make to log each data into the seperate line?? Like this
12345
12345
12345

I use
SEROUT TX\CTS, Baud, [noparse][[/noparse]"WRF ", $00, $00, $00, $05, CR, DEC5 result1, CR, LF, CR]
BUt that does not do the trick.
Please help
Thanks
Robert

Comments

  • UnsoundcodeUnsoundcode Posts: 1,532
    edited 2009-01-10 16:09
    Hi Robert, you are actually writing 7 not 5 characters, the CR,LF count as the extra 2 characters

    SEROUT TX\CTS, Baud, [noparse][[/noparse]"WRF ", $00, $00, $00, $07, CR, DEC5 result1, CR, LF, CR]

    Jeff T.
  • Robert KRobert K Posts: 6
    edited 2009-01-10 18:41
    Yes Jeff , it works !!! it was logical, It works great, thanks very much

    Robert
Sign In or Register to comment.