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>