Shop OBEX P1 Docs P2 Docs Learn Events
BS2p data capture — Parallax Forums

BS2p data capture

ArchiverArchiver Posts: 46,084
edited 2002-07-18 15:55 in General Discussion
I am trying to capture data from BS2p using serout. I like to use
applications like hyperterminal or Matlab to capture the data. But it
does not work with any application except BS2p itself and Stamp Plot.
I like to know what format BS2p outputs data and if there is anyway
of getting that data through other applications.

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2002-07-17 21:54
    In a message dated 7/17/02 16:44:24 Eastern Daylight Time, kambms@y...
    writes:


    > I am trying to capture data from BS2p using serout. I like to use
    > applications like hyperterminal or Matlab to capture the data. But it
    > does not work with any application except BS2p itself and Stamp Plot.
    > I like to know what format BS2p outputs data and if there is anyway
    > of getting that data through other applications.
    >
    >

    It is quite easy to capture data from a Stamp into Excel, if you are familiar
    with Excel. If you are interested contact me off-line.

    Sid


    [noparse][[/noparse]Non-text portions of this message have been removed]
  • ArchiverArchiver Posts: 46,084
    edited 2002-07-17 22:06
    you mean you can capture data directly into excel from bs2?? i am
    doing it manually right now...i use stamp plot to save the data and
    then import it into excel...
    what i am interested in doing is a real time plotting of data...i
    think i can do that with matlab...i am not sure if its possible in
    excel...i like to know how one can do it

    --- In basicstamps@y..., Newzed@a... wrote:
    > In a message dated 7/17/02 16:44:24 Eastern Daylight Time,
    kambms@y...
    > writes:
    >
    >
    > > I am trying to capture data from BS2p using serout. I like to use
    > > applications like hyperterminal or Matlab to capture the data.
    But it
    > > does not work with any application except BS2p itself and Stamp
    Plot.
    > > I like to know what format BS2p outputs data and if there is
    anyway
    > > of getting that data through other applications.
    > >
    > >
    >
    > It is quite easy to capture data from a Stamp into Excel, if you
    are familiar
    > with Excel. If you are interested contact me off-line.
    >
    > Sid
    >
    >
    > [noparse][[/noparse]Non-text portions of this message have been removed]
  • ArchiverArchiver Posts: 46,084
    edited 2002-07-17 22:12
    I would like to know how you do that capture too. Is it something you can post
    here?
    kambms <kambms@y...> wrote: you mean you can capture data directly into
    excel from bs2?? i am
    doing it manually right now...i use stamp plot to save the data and
    then import it into excel...
    what i am interested in doing is a real time plotting of data...i
    think i can do that with matlab...i am not sure if its possible in
    excel...i like to know how one can do it

    --- In basicstamps@y..., Newzed@a... wrote:
    > In a message dated 7/17/02 16:44:24 Eastern Daylight Time,
    kambms@y...
    > writes:
    >
    >
    > > I am trying to capture data from BS2p using serout. I like to use
    > > applications like hyperterminal or Matlab to capture the data.
    But it
    > > does not work with any application except BS2p itself and Stamp
    Plot.
    > > I like to know what format BS2p outputs data and if there is
    anyway
    > > of getting that data through other applications.
    > >
    > >
    >
    > It is quite easy to capture data from a Stamp into Excel, if you
    are familiar
    > with Excel. If you are interested contact me off-line.
    >
    > Sid
    >
    >
    > [noparse][[/noparse]Non-text portions of this message have been removed]


    To UNSUBSCRIBE, just send mail to:
    basicstamps-unsubscribe@yahoogroups.com
    from the same email address that you subscribed. Text in the Subject and Body of
    the message will be ignored.


    Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/




    Do You Yahoo!?
    Yahoo! Autos - Get free new car price quotes

    [noparse][[/noparse]Non-text portions of this message have been removed]
  • ArchiverArchiver Posts: 46,084
    edited 2002-07-17 22:43
    This is for those on the list who requested more info. If you need
    additional specifics contact me off line.

    Format the data in Stamp the way you want it captured, i.e., separate numbers
    by spaces, commas or tabs. Excel has to have a delimiter in order to put the
    data in columnar form.

    Once you have your data formatted, exit Stamp, go to Excel and create a file
    - for example - testdata.txt. Open a page in Excel and pout your name or
    something at the top. When you save the file be sure to save it as a .txt
    file. Close Excel.

    Go to your Hyperterminal program, which should be setup "Direct to Com2",
    click on Transfer/Capture Text. Enter the path to your Excel file, for
    example, C:\Office20\Office\testdata.txt, then click on start.

    When the blank screen appears, start Stamp. Data being captured will appear
    on the screen. When you have all the data you want, click on
    Transfer/Capture Text/Stop. Exit Hyper.

    Go to Excel, open testdata.txt, and assuming you have a fair knowledge of
    Excel you should be able to format the data into columns, specifying Text
    instead of General for the numbers. Otherwise you will lose leading zeros
    which may or may not be important.

    That's a brief resume of the process. It works beautifully, just have a
    little patience the first time you try it.

    Sid


    [noparse][[/noparse]Non-text portions of this message have been removed]
  • ArchiverArchiver Posts: 46,084
    edited 2002-07-17 22:47
    That sounds good. But i am not able to get the BS2 into
    hyperterminal. I got a RS-232 cable connected from the BS2 to COM1. I
    configured Hyperterminal. But i dont see it coming.

    --- In basicstamps@y..., Newzed@a... wrote:
    > This is for those on the list who requested more info. If you need
    > additional specifics contact me off line.
    >
    > Format the data in Stamp the way you want it captured, i.e.,
    separate numbers
    > by spaces, commas or tabs. Excel has to have a delimiter in order
    to put the
    > data in columnar form.
    >
    > Once you have your data formatted, exit Stamp, go to Excel and
    create a file
    > - for example - testdata.txt. Open a page in Excel and pout your
    name or
    > something at the top. When you save the file be sure to save it as
    a .txt
    > file. Close Excel.
    >
    > Go to your Hyperterminal program, which should be setup "Direct to
    Com2",
    > click on Transfer/Capture Text. Enter the path to your Excel file,
    for
    > example, C:\Office20\Office\testdata.txt, then click on start.
    >
    > When the blank screen appears, start Stamp. Data being captured
    will appear
    > on the screen. When you have all the data you want, click on
    > Transfer/Capture Text/Stop. Exit Hyper.
    >
    > Go to Excel, open testdata.txt, and assuming you have a fair
    knowledge of
    > Excel you should be able to format the data into columns,
    specifying Text
    > instead of General for the numbers. Otherwise you will lose
    leading zeros
    > which may or may not be important.
    >
    > That's a brief resume of the process. It works beautifully, just
    have a
    > little patience the first time you try it.
    >
    > Sid
    >
    >
    > [noparse][[/noparse]Non-text portions of this message have been removed]
  • ArchiverArchiver Posts: 46,084
    edited 2002-07-17 23:18
    In a message dated 7/17/02 17:49:35 Eastern Daylight Time, kambms@y...
    writes:


    > That sounds good. But i am not able to get the BS2 into
    > hyperterminal. I got a RS-232 cable connected from the BS2 to COM1. I
    > configured Hyperterminal. But i dont see it coming.
    >

    For kambms

    For this purpose couldn't you connect your Stamp to your PC via the serial
    cable to Com2. Serial cable to Com2 is, I think, the normal method of
    connecting a Stamp to a PC.

    Sid


    [noparse][[/noparse]Non-text portions of this message have been removed]
  • ArchiverArchiver Posts: 46,084
    edited 2002-07-17 23:42
    It really should not matter what COM port you us. You cannot use a
    straight-through RS-232 cable. You need a direct connect cable or
    another term for it is null-modem cable. A null modem cable has the
    number 2 and 3 wire twisted. In this way, the data going out from
    the Stamp (write) goes into the read pin on the PC. Of course, I am
    assuming you are using a straight-through serial cable. If you are
    using a null-modem cable then I am not sure what the problem is.

    --- In basicstamps@y..., "kambms" <kambms@y...> wrote:
    > That sounds good. But i am not able to get the BS2 into
    > hyperterminal. I got a RS-232 cable connected from the BS2 to COM1.
    I
    > configured Hyperterminal. But i dont see it coming.
    >
    > --- In basicstamps@y..., Newzed@a... wrote:
    > > This is for those on the list who requested more info. If you
    need
    > > additional specifics contact me off line.
    > >
    > > Format the data in Stamp the way you want it captured, i.e.,
    > separate numbers
    > > by spaces, commas or tabs. Excel has to have a delimiter in
    order
    > to put the
    > > data in columnar form.
    > >
    > > Once you have your data formatted, exit Stamp, go to Excel and
    > create a file
    > > - for example - testdata.txt. Open a page in Excel and pout your
    > name or
    > > something at the top. When you save the file be sure to save it
    as
    > a .txt
    > > file. Close Excel.
    > >
    > > Go to your Hyperterminal program, which should be setup "Direct
    to
    > Com2",
    > > click on Transfer/Capture Text. Enter the path to your Excel
    file,
    > for
    > > example, C:\Office20\Office\testdata.txt, then click on start.
    > >
    > > When the blank screen appears, start Stamp. Data being captured
    > will appear
    > > on the screen. When you have all the data you want, click on
    > > Transfer/Capture Text/Stop. Exit Hyper.
    > >
    > > Go to Excel, open testdata.txt, and assuming you have a fair
    > knowledge of
    > > Excel you should be able to format the data into columns,
    > specifying Text
    > > instead of General for the numbers. Otherwise you will lose
    > leading zeros
    > > which may or may not be important.
    > >
    > > That's a brief resume of the process. It works beautifully, just
    > have a
    > > little patience the first time you try it.
    > >
    > > Sid
    > >
    > >
    > > [noparse][[/noparse]Non-text portions of this message have been removed]
  • ArchiverArchiver Posts: 46,084
    edited 2002-07-17 23:47
    When using the Debug command the output is 9600,8,N,1. You can also
    use Serout to use different baud rates if needed. I use Hyperterminal
    and Tera Term Pro all the time with the basic stamp. Check your cable
    and comm settings.

    If you want to plot real time serial data from the basic stamp then
    buy StampPlot Pro from Selmaware. The only way to capture serial data
    if you ask me. It is on sale for $39.99 right now.

    www.selmaware.com

    Jason



    --- In basicstamps@y..., "kambms" <kambms@y...> wrote:
    > I am trying to capture data from BS2p using serout. I like to use
    > applications like hyperterminal or Matlab to capture the data. But
    it
    > does not work with any application except BS2p itself and Stamp
    Plot.
    > I like to know what format BS2p outputs data and if there is anyway
    > of getting that data through other applications.
  • ArchiverArchiver Posts: 46,084
    edited 2002-07-18 07:16
    Ditto everything that Sid said. Also, if you want to see an example on the
    internet, go to http://www.lennard.net.nz/ click on electronics, then A to
    D. Theer you will find my first ever experiment with A to D conversion and
    data logging - including using Excel to display a graph of the logged data.

    cheers,

    Ben, Windy Wellington, New Zealand.

    --
    http://www.lennard.net.nz/
    Ben Lennard, NCEE, Dip EE

    Web Hosting and Electronics R&D

    Hm: +64 4 972 7567
    Mb: +64 21 536 627
    87 Spencer Street
    Crofton Downs
    Wellington
    New Zealand

    "To the optimist, the glass is half full. To the pessimist, the glass is
    half empty. To the engineer, the glass is twice as big as it needs to be."

    No animals were harmed in the transmission of this email, although the
    Dog next door is living on borrowed time, let me tell you! Those of you
    with an overwhelming fear of the unknown will be gratified to learn that
    there is no hidden message revealed by reading this warning backwards.




    > From: Newzed@a...
    > Reply-To: basicstamps@yahoogroups.com
    > Date: Wed, 17 Jul 2002 17:43:03 EDT
    > To: basicstamps@yahoogroups.com
    > Subject: Re: [noparse][[/noparse]basicstamps] Re: BS2p data capture
    >
    > This is for those on the list who requested more info. If you need
    > additional specifics contact me off line.
    >
    > Format the data in Stamp the way you want it captured, i.e., separate numbers
    > by spaces, commas or tabs. Excel has to have a delimiter in order to put the
    > data in columnar form.
    >
    > Once you have your data formatted, exit Stamp, go to Excel and create a file
    > - for example - testdata.txt. Open a page in Excel and pout your name or
    > something at the top. When you save the file be sure to save it as a .txt
    > file. Close Excel.
    >
    > Go to your Hyperterminal program, which should be setup "Direct to Com2",
    > click on Transfer/Capture Text. Enter the path to your Excel file, for
    > example, C:\Office20\Office\testdata.txt, then click on start.
    >
    > When the blank screen appears, start Stamp. Data being captured will appear
    > on the screen. When you have all the data you want, click on
    > Transfer/Capture Text/Stop. Exit Hyper.
    >
    > Go to Excel, open testdata.txt, and assuming you have a fair knowledge of
    > Excel you should be able to format the data into columns, specifying Text
    > instead of General for the numbers. Otherwise you will lose leading zeros
    > which may or may not be important.
    >
    > That's a brief resume of the process. It works beautifully, just have a
    > little patience the first time you try it.
    >
    > Sid
    >
    >
    > [noparse][[/noparse]Non-text portions of this message have been removed]
    >
    >
    > To UNSUBSCRIBE, just send mail to:
    > basicstamps-unsubscribe@yahoogroups.com
    > from the same email address that you subscribed. Text in the Subject and Body
    > of the message will be ignored.
    >
    >
    > Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
    >
    >
  • ArchiverArchiver Posts: 46,084
    edited 2002-07-18 15:55
    Stampers,

    The discussion is good timing for a free software program we will announce
    today.

    By noon PST you will have a solution!

    Sincerely,

    Ken Gracey, Parallax Inc.
    New! Microcontroller Application Cookbook Volume 2
    BASIC Stamp circuits and code for motors, power supply, sensors of all
    types, networking, solar power and proximity
    $29.95 at http://www.parallaxinc.com/mac


    Message: 6
    Date: Wed, 17 Jul 2002 14:12:46 -0700 (PDT)
    From: Dennis Talley <dtalley_2000@y...>
    Subject: Re: Re: BS2p data capture


    I would like to know how you do that capture too. Is it something you can
    post here?
    kambms <kambms@y...> wrote: you mean you can capture data directly
    into excel from bs2?? i am
    doing it manually right now...i use stamp plot to save the data and
    then import it into excel...
    what i am interested in doing is a real time plotting of data...i
    think i can do that with matlab...i am not sure if its possible in
    excel...i like to know how one can do it

    --- In basicstamps@y..., Newzed@a... wrote:
    > In a message dated 7/17/02 16:44:24 Eastern Daylight Time,
    kambms@y...
    > writes:
    >
    >
    > > I am trying to capture data from BS2p using serout. I like to use
    > > applications like hyperterminal or Matlab to capture the data.
    But it
    > > does not work with any application except BS2p itself and Stamp
    Plot.
    > > I like to know what format BS2p outputs data and if there is
    anyway
    > > of getting that data through other applications.
    > >
    > >
    >
    > It is quite easy to capture data from a Stamp into Excel, if you
    are familiar
    > with Excel. If you are interested contact me off-line.
    >
    > Sid
    >
    >
    > [noparse][[/noparse]Non-text portions of this message have been removed]
Sign In or Register to comment.