Re: 8ms Timer for serial port access
From: David Schwartz (davids_at_webmaster.com)
Date: 10/29/03
- Next message: Manuel Jansen: "XMMS Remote Controll"
- Previous message: David Schwartz: "Re: 8ms Timer for serial port access"
- In reply to: Jens Schumacher: "Re: 8ms Timer for serial port access"
- Next in thread: Floyd Davidson: "Re: 8ms Timer for serial port access"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 29 Oct 2003 14:05:04 -0800
"Jens Schumacher" <jens.schumache@gmx.net> wrote in message
news:BBC59AAC.1D12%jens.schumache@gmx.net...
> I'm analyzing eye-movements and in particular saccadic eye-movements. I
need
> to detect them online to be able to execute some experiments. Since small
> saccadic eye-movements last only around 90ms I need to detect them really
> fast and have to avoid delay where I can.
Your statement doesn't make any sense. How long they last doesn't say
anything about how quickly you need to detect them. So long as you get all
the data that is sent over the serial port, it doesn't seem to matter
exactly *when* you get it. If you get it 2 milliseconds later, what does
that matter? You still have the data.
Is there anything you are trying to *do* with the data that is
time-sensitive? It's hard to imagine anything you might do that needs to be
done that quickly.
You can solve your problem so many ways. You can even sleep for 20
milliseconds, then read *all* the data in the serial buffer, process it,
then loop.
DS
- Next message: Manuel Jansen: "XMMS Remote Controll"
- Previous message: David Schwartz: "Re: 8ms Timer for serial port access"
- In reply to: Jens Schumacher: "Re: 8ms Timer for serial port access"
- Next in thread: Floyd Davidson: "Re: 8ms Timer for serial port access"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|