On 3/9/00 8:58 pm, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> 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.
Regularly - you would perhaps do it using "send in..." with a short
interval, or most likely simply in a repeat loop that kept reading from the
port, and if there was any data then processing it (e.g. using a large
switch statement to decide on what the data was and what to do with it) then
going back to reading from the port. It really depends on your equipment -
but a little trial and error should allow you to "define a protocol" and get
it right.
Regards,
Kevin
Kevin Miller <[EMAIL PROTECTED]> <http://www.runrev.com/>
Runtime Revolution Limited (formerly Cross Worlds Computing).
Tel: +44 (0)131 672 2909. Fax: +44 (0)1639 830 707.
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.