Help WAM Ch.3 Activity5 (ReactionTimer.bs2)
BS2004
Posts: 4
I need help with the 5th activity in chapter three of What is a Microcontroller (ReactionTimer.bs2). I copied all the code into the stamp editor exactly as it was written in the book. I've double and triple checked for typos. Whenever i try to run the program an error pops up that says "Expected a constant, variable, unary operator, or '('·". When this message box pops up the program also highlights the first DO written in the program. I read somewhere else on the forums about using a DO WHILE command. I cant find this post now. I have tried using the DO WHILE command instead of the DO comand, which still didn't work. im not sure i did it correctly since this is my first programming experience, and i dont know how to write my own code yet. All i know to do is copy from the book until i learn how the commands are used. I would greatly appreciate if anyone could help me out with this problem. I have tried all i know with no success.
Comments
' {$PBASIC 2.5}
... at the top of your program?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
Always look immediately before the error too.
Tricky one!
-Martin
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Martin Hebel
Electronic Systems Technologies
Southern Illinois University Carbondale
Personal Links - ·Lot of BASIC Stamp info
and
SelmaWare Solutions
StampPlot Pro Version 3 Release 4
Graphical Data Acquisition for your Micro and Imagination!
Now allows additional controls to be added, or developed.
·