Shop OBEX P1 Docs P2 Docs Learn Events
Photos divers — Parallax Forums

Photos divers

ArchiverArchiver Posts: 46,084
edited 2003-11-28 22:59 in General Discussion
Hi!

While my BS-2 running program, sometime the program stuck somewhere, it
is intermittant. I use the
CD-Rom program supplyed by the book "Microcontroller projects using
Basic Stamp"
from Al Williams. Does it exist another program from which we could
readback from the BS-2
and see the path the program as followed until it goes wrong?

The size of my program use 95% of the 2k memory on my BS-2

Thanks

Rene

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2003-11-27 20:37
    Rene,

    Are you familiar with the DEBUG command? That is what most folks use to find
    out where their program is getting stuck. Just insert statements like:


    Main:
    debug "Top of main loop", CR
    x= x+1
    If x = 12 then
    debug " Passed the IF", CR
    x = 0
    *your program stuff*
    endif
    goto main

    This program would loop through, and show you what sections of the program
    you are in. If it stalled, you would have the last debug as a clue to where
    the problem lies.

    Hope this is what you meant!

    Jonathan

    Original Message
    From: "rene genest" <rene.genest@q...>
    To: "stamp" <basicstamps@yahoogroups.com>
    Sent: Wednesday, November 26, 2003 7:34 PM
    Subject: [noparse][[/noparse]basicstamps] Re: Photos divers


    > Hi!
    >
    > While my BS-2 running program, sometime the program stuck somewhere, it
    > is intermittant. I use the
    > CD-Rom program supplyed by the book "Microcontroller projects using
    > Basic Stamp"
    > from Al Williams. Does it exist another program from which we could
    > readback from the BS-2
    > and see the path the program as followed until it goes wrong?
    >
    > The size of my program use 95% of the 2k memory on my BS-2
    >
    > Thanks
    >
    > Rene
    >
    >
    > 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 2003-11-28 04:16
    Hi Jonathan!

    Thanks for the answer, but their something I do not understand,
    when you write ...
    If x = 12 then
    they are a missing an address at the end of it, is it???
    By the way, how is your meteo station?

    Rene


    Jonathan Peakall a
  • ArchiverArchiver Posts: 46,084
    edited 2003-11-28 22:59
    Rene,

    I'm not sure what you mean exactly. The code below would run as is, if you
    took out the *your program stuff*. If statments can be written as shown
    below, if that is what you mean. The syntax is:

    IF *whatever* THEN
    *do stuff*
    ENDIF

    or

    IF *whatever* THEN "do stuff"

    If this isn't what you meant, write back.

    The Meto station is going well. I have the remote humidity and temp sensor
    working, and now need to make a PCB for it.

    Have fun!

    Jonathan
    Original Message
    From: "rene genest" <rene.genest@q...>
    To: <basicstamps@yahoogroups.com>
    Sent: Thursday, November 27, 2003 8:16 PM
    Subject: Re: [noparse][[/noparse]basicstamps] Re: Photos divers


    > Hi Jonathan!
    >
    > Thanks for the answer, but their something I do not understand,
    > when you write ...
    > If x = 12 then
    > they are a missing an address at the end of it, is it???
    > By the way, how is your meteo station?
    >
    > Rene
    >
    >
    > Jonathan Peakall a
Sign In or Register to comment.