david,

this is where serial communications gets fun! you will have to do the 
repeated reads as kevin suggested and reassemble the data stream from 
that. you then have to figure out how your data stream is packaged. 
usually most machines have some sort of header and footer character to 
show you where a data set is and some sort of delimiter if its spewing 
several channels of data.

if you dont need every data point, then i usually just read every so 
often for a chunk of data thats big enough (usually 2x one data set) and 
disect out one data set for use.

serial stuff is a bit of trial and error, but its really great once you 
get things talking to each other!

cheers,

jeff

[EMAIL PROTECTED] wrote on 9/4/00 7:09 PM

>Just curiosity, and it might well be a dumb question.  
>
>Say you had physiological equipment attached to the serial port.  The data 
>would presumably be available according to the sampling rate of the 
>equipment.  How would you know when and how often to 'read'?  Little 
>hardware 
>knowledge, so no acronyms or big words in any answer forthcoming please.
>
>Best wishes
>
>David G



Jeffrey H. Reynolds, Ph.D.
Waveforms
5236 Locksley Ave.
Oakland, CA  94618
510.653.8929 voice
510.653.8909 fax
email: [EMAIL PROTECTED]
       [EMAIL PROTECTED]


Archives: http://www.mail-archive.com/metacard%40lists.best.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to <[EMAIL PROTECTED]>, not this list.

Reply via email to