[comp.sys.mac.hypercard] faster serial port reader XFCN

cwalton@caen.engin.umich.edu (Christopher A Walton) (06/01/91)

[I am a new newsnet user and have never written an XCMD. I hope
this query is appropriate for and understandable to this newsgroup]
 
I am looking for an optimized XFCN to read individual integers from a
serial port at speeds up to (or better than) 50 integers per second.
The integers are delimited by CR and LF pairs.  I am using NeuGraph
XCMDs to plot the incoming values in realtime on a SuperCard window.

I am currently using the XFCN recvupto(delimiter,maxtime,previousdata)
from the APDA communications toolkit, but have heard (and experienced)
that it is written for generalized use and not for optimized speed.

[ recvupto(return,empty,empty) returns a <linefeed>NNNN<return> where
NNNN varies from 4 to 5 digits.  I can currently strip off the last two
characters and refer to the remaining chars as integers only about
10 times per second]

Any suggestions for faster serial port XFCN readers or pointers to code
that I could create my own XFCN from would be greatly appreciated!

Thanks
Chris Walton
cwalton@engin.umich.edu