Shop OBEX P1 Docs P2 Docs Learn Events
Receiver help — Parallax Forums

Receiver help

jtaylor408jtaylor408 Posts: 15
edited 2009-03-01 08:20 in BASIC Stamp
Does anyone know how to make the receiver wait for a signal for only a specified time and then the code moves on

Comments

  • Craig EidCraig Eid Posts: 106
    edited 2009-03-01 07:32
    You can use the [noparse][[/noparse]Timeout, Tlabel] variables·in the SERIN command list to wait for a specified period of time and move on but the timeout feature is not selective and it will trigger on any serial data that is received. You will need to add some code for error trapping if you use these features.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Craig Eid

    www.TriadRD.com
  • jtaylor408jtaylor408 Posts: 15
    edited 2009-03-01 07:43
    Do you know what to put for TLabel? Is it a function? Can i make it so it just goes to the next line of code?
  • MikerocontrollerMikerocontroller Posts: 310
    edited 2009-03-01 08:20
    · The label is a name you give to an address in your program.·· If you want the program to continue without any error-trapping routine then just add a label (a name followed by a colon) on the next line of your program.· The label works just like the one you would add to a GOTO or GOSUB statement.·
Sign In or Register to comment.