In SX Microcontrollers, SX/B Compiler and SX-Key Tool, Sparks-R-Fun wrote: Bean, Thanks for the quick reply! :-) For my application (a bar code reader) I do not know exactly when to expect the serial data to begin. It could take several seconds for the label to found and read. My intention is to allow up to 5,000 ms (5 seconds) for the first character to be received. The amount of data actually transmitted varies with each different label type but once the data starts flowing the data stream does not pause until all the data has been sent. I was hoping to place the "SerIn" command in a subroutine and call it once with a very long timeout value to catch the first character and then repeatedly thereafter with a very short timeout value to catch the remaining characters. The occurrence of a timeout would signal the end of expected data. Do you expect the support of a word variable for the timeout value to be incorporated into a future release? I think I can work around this now that I understand the limitation. As always, I appreciate the response and the effort put into the compiler! - Sparks ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=156640#m156651 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2006 (http://www.dotNetBB.com)