Mysterious looping
Archiver
Posts: 46,084
Dear Group,
I have had a program working well until.... A simple light sensor
program containing for--nexts, if- thens, counts, serouts(to Stamp
DAQ), stepping through 3 routines and finishing with an end. My
problem is that all of a sudden the program started to loop through
the first two segments continuously and ignored the final routine. I
finally found the one problem and fixed it-- a loose connection on
the 3rd segment LED so that it never received a HIGH signal from the
Stamp. All other parts of the circuit were fine. My question is why
did the program decide to loop rather than just proceeding and end--
simply ignoring the fact that the HIGH signal was sent but not
received? In a remote setting the batteries would have run to nothing-
- I would rather that any particular segment just not work or that
the unit would shut down. Is there some sort of feedback from the
HIGH and LOW signals to the stamp?
Maybe I need to post the program if the above is too cryptic.
Thanks
Mike Z
I have had a program working well until.... A simple light sensor
program containing for--nexts, if- thens, counts, serouts(to Stamp
DAQ), stepping through 3 routines and finishing with an end. My
problem is that all of a sudden the program started to loop through
the first two segments continuously and ignored the final routine. I
finally found the one problem and fixed it-- a loose connection on
the 3rd segment LED so that it never received a HIGH signal from the
Stamp. All other parts of the circuit were fine. My question is why
did the program decide to loop rather than just proceeding and end--
simply ignoring the fact that the HIGH signal was sent but not
received? In a remote setting the batteries would have run to nothing-
- I would rather that any particular segment just not work or that
the unit would shut down. Is there some sort of feedback from the
HIGH and LOW signals to the stamp?
Maybe I need to post the program if the above is too cryptic.
Thanks
Mike Z