Shop OBEX P1 Docs P2 Docs Learn Events
how I make a try catch with this?? — Parallax Forums

how I make a try catch with this??

zBusterzBuster Posts: 7
edited 2010-02-20 21:08 in BASIC Stamp
Hi...

I have the following code....

SERIN 2, 9600 [noparse][[/noparse]WAIT("!"), INDEX]

My problem is, that sometimes there is no response...
I want to make it to where there is some way that it atempts the SERIN and stops within so much time of no response or if there is a NULL.....

Is this possible with the BS2 and PBASIC 2.5??

Thanks for your time....

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2010-02-20 21:08
    Read the description of the SERIN statement in the BASIC Stamp Syntax and Reference Manual or the equivalent in the help files of the Stamp Editor. Pay attention to the discussion of the timeout parameter to the SERIN statement. Also look at the description of the 2nd parameter for the Baud. It's not literally the Baud to use.
Sign In or Register to comment.