Newsgroups: comp.sys.mac.hypercard Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!caen!maize.engin.umich.edu!cwalton From: cwalton@caen.engin.umich.edu (Christopher A Walton) Subject: faster serial port reader XFCN Message-ID: <=27+!K#@engin.umich.edu> Date: Fri, 31 May 91 19:27:38 GMT Organization: University of Michigan Engineering, Ann Arbor Distribution: comp.sys.mac.hypercard [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 NNNN 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