
Originally Posted by
Kalind
hey guys. i just realised that everything is fine until the actual temperature reaches the respective setpoints. thats when the design starts to really slow down during its operation. i cant seem to understand why this is so.
Gee....Ya think? You wrote the code (or did you?), you should know why it happens...
Code:
...................
If tempc>=highpt then
gosub high_flash
....................
If tempc<=lowpt then
gosub low_flash
.....................
high_flash:
HIGH highled
PAUSE 350
LOW highled
PAUSE 350
RETURN
low_flash:
HIGH lowled
PAUSE 350
LOW lowled
PAUSE 350
RETURN
How long do you suppose it takes each of those last 2 chunks of code to execute?
Better yet...how long does it take for a PAUSE 350 to execute?
Bookmarks