Perhaps we should ignore this question for now. The problem seems to
be me, in that I had code remaining in my DA Event that was flushing
the buffer. Removing it and the code below appears to work. Sorry if
anyone took much time in thinking about this.
-Richard
On Aug 17, 2006, at 6:11 PM, Richard wrote:
Why doesn't this work?
While c<280
s = Serial1.ReadAll '(s dimed as string)
c=c+len(s) '(c dimed as int)
Serial1.Poll
Wend
break
The break is never executed. I know serial data is being presented
to the port, and after 10 seconds or less the total characters
received will be over 280.
"Serial.Poll" says, "Causes the control's properties to update and
causes the DataAvailable event to execute if any new data is
available." While that may be true, it doesn't seem to update the
serial receive buffer contents.
What it DOES do is pretty much lock up my app, hung up in the while
loop. I understand why, and I can live with that if it resulted in
me being able to respond quickly to any incoming data. That's what
I'm striving for, to respond within 10ms or so to any incoming
serial data.
I'm open to suggestions please.
-Richard
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>