Shop OBEX P1 Docs P2 Docs Learn Events
Can someone please have a look at this... — Parallax Forums

Can someone please have a look at this...

tercou1tercou1 Posts: 25
edited 2012-04-10 02:56 in BASIC Stamp
Hi, i'm literally pulling my hair out here... The problem is that I have a perfectly working bit of RC code but when I introduce it to the main body of code, nothing gets stored in the Temp variable it just reads zero, no matter what I do but values get stored in the Temp variable when it's ran on it's own. I know it's something small that i've missed but i just kind find it. Thanks in advance for your time guys. I really appreciate it.

I have attached the working bit of code on it's own and with it in the main code. If you have any comments/advice on the rest of the code, i'm all ears...

MAIN program so far.bs2 RC code not working in this code

temperture-LCD alarm.bs2 but RC code working here

Terry

Comments

  • FranklinFranklin Posts: 4,747
    edited 2012-04-09 13:11
    IF Temp > 600 THEN FreezeAlarm
    

    Then FreezeAlarm goes to main.
  • tercou1tercou1 Posts: 25
    edited 2012-04-10 02:56
    Franklin wrote: »
    IF Temp > 600 THEN FreezeAlarm
    

    Then FreezeAlarm goes to main.

    Hi Franklin

    Thanks for taking the time to look at the code, it turns out that the problem was in the actual circuit, I had the push buttons and the thermister connected to the same connector block... Since I have moved the PB's power supply to the main switch of the circuit the program is working nicely. I have also amended the above bit of code. Thanks again

    Terry
Sign In or Register to comment.