Shop OBEX P1 Docs P2 Docs Learn Events
Use of memory stick datalogger on BS2 — Parallax Forums

Use of memory stick datalogger on BS2

po2lepo2le Posts: 76
edited 2007-12-19 23:05 in General Discussion
Is it possible to attach the parallax memory stick datalogger to a BS2, then use that set up as a remote data logger?· In other words, remove the BS2+memory stick datalogger from a PC,·take that set up to another location, measure and record voltage data, then reconnect the BS2 to a PC and analyze the recorded voltage data?·· Whew!

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2007-12-19 05:43
    Yes

    You don't really need to connect the BS2 to a PC, just remove the memory stick and read the files produced by the data logging program. The data logger uses a standard PC compatible file system. If your data logging program writes text data to the file, it will be readable by pretty much any program. You could write comma separated values (CSV) and load it directly into Excel for analysis.
  • DuctapemasterDuctapemaster Posts: 90
    edited 2007-12-19 19:33
    Is there any sort of simplified list of commands for the datalogger? I hate reading those firmware datasheets...I always get so confused when I read them.
  • UnsoundcodeUnsoundcode Posts: 1,532
    edited 2007-12-19 19:50
    Pages 10 and 11 of the Vdap Firmware contain all the commands

    http://www.parallax.com/Portals/0/Downloads/docs/prod/comm/VDAPFirmwareSpec.pdf

    The Datalogger product page contains example code


    Jeff T.
  • DuctapemasterDuctapemaster Posts: 90
    edited 2007-12-19 19:55
    Thanks...I started reading the datasheet and I got confused way before page 10, so I never got there.

    Oh, and does anybody know how fast I can write to the flash drive? I would be writing 16 bits at least 10 times a second, but 60 times per second (or faster) would be preferred.
  • UnsoundcodeUnsoundcode Posts: 1,532
    edited 2007-12-19 20:05
    What I ended up doing was to figure them out and make each command a subroutine I keep in a "library" project. The shortened command set is easier to work with because the strings are shorter and easier to manage with a Stamp. With a little thought it's possible to manage multiple folders and moderately long file sizes quite quickly.

    Jeff T.
  • po2lepo2le Posts: 76
    edited 2007-12-19 21:17
    Mike Green,
    Thanks for the info. It appears that I can use the BS2 as a datalogger in a remote location.

    Thanks
    Pat
  • DuctapemasterDuctapemaster Posts: 90
    edited 2007-12-19 23:05
    Well, I am going to be using the SX for this project so processor speed isn't a problem. Also, when I am writing multiple times per second, I will only be writing to one file. I'm just logging data in a consecutive stream.

    Setting the commands as subroutines is a very good idea too. I will definitely do that when I stat programming.

    Thanks for the help.

    -Dan
Sign In or Register to comment.