PDA

View Full Version : how I make a try catch with this??



zBuster
02-21-2010, 03:32 AM
Hi...

I have the following code....

SERIN 2, 9600 [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....

Mike Green
02-21-2010, 04:08 AM
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.