Shop OBEX P1 Docs P2 Docs Learn Events
logging data on PC from BS2 USB education board — Parallax Forums

logging data on PC from BS2 USB education board

AlexJawAlexJaw Posts: 4
edited 2007-05-27 23:06 in BASIC Stamp
I need a link to a project explaining·how data (temperature data, i.e. Word)·from BS2 USB·is transfered and stored on the PC. I would like to make the connection to the BS2·with Matlab. I have looked at the serin/serout commands in the reference manual, tried it with Matlab without success. Have searched among the educational material and on the forum but have not really found any info regarding USB connection and storage on PC.

/AJ

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2007-05-27 18:05
    The available Stamp - PC links (free) include StampPlot Pro (a standalone program for plotting, analyzing, and logging Stamp data) and PLX-DAQ (an Excel plug-in for downloading data) available here: www.parallax.com/html_pages/downloads/software/software_basic_stamp.asp. These are supported by Parallax (and StampPlot by Martin Hebel at www.selmaware.com). Occasionally people have posted discussions on using Matlab with a Stamp, but it's not really supported. You'd have to go to a Matlab forum for that.
  • AlexJawAlexJaw Posts: 4
    edited 2007-05-27 18:37
    Thank's Mike!
    But am I completely wrong about serin/serout over USB?
  • Mike GreenMike Green Posts: 23,101
    edited 2007-05-27 18:52
    As far as the Stamp is concerned, it has a serial connection. The SERIN/SEROUT statements work with "pin" #16 and the DEBUGIN/DEBUG statements offer an alternate way to access the same serial connection. On the USB BOE, the serial connection just happens to be implemented via a built-in USB adapter.

    From the PC side, if you have the proper (FTDI) USB driver installed, you have a serial port when you plug in the USB connection to the USB BOE. Any program that talks to a serial port can talk to the Stamp.

    Because of how the "programming" port is implemented, the only Baud supported is 9600, 8-bit, no parity and any characters sent from the PC are echoed back to the PC (and software has to take that into account). This also occurs on the Stamp side, but the Stamp only does unbuffered simplex serial I/O (one direction at a time) so it doesn't see any echoing.

    Post Edited (Mike Green) : 5/27/2007 6:57:29 PM GMT
  • AlexJawAlexJaw Posts: 4
    edited 2007-05-27 19:14
    I appreciate the last information! Now I think I know how to instruct matlab to use the com port. StampPlot was really nice and has the functionality I need.

    Thank's again!
  • Kevin WoodKevin Wood Posts: 1,266
    edited 2007-05-27 23:06
    Just to let you know, the regular forum search engine isn't very good, which led Parallax to add a Google search engine at search.parallax.com.

    Try searching for Matlab with it, and you should find some code samples.
Sign In or Register to comment.