Re: 8ms Timer for serial port access

From: David Schwartz (davids_at_webmaster.com)
Date: 10/29/03


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



Relevant Pages

  • Re: rs232 reading problem explanation
    ... > that arrive to the serial port of the pda are simply bits, no more, it ... UNICODE is only required for api calls and I ... mentioned it doesn't matter if you write ascii error messages to a file as ...
    (microsoft.public.windowsce.embedded.vc)
  • Re: Multimedia Timer
    ... The 'resolution' claimed by the multimedia timer is not the same as the resolution provided by GetTickCount. ... So GetTickCount will not give you good measurements for fast events. ... 20 milliseconds is also rather fast for attempting to do anything like output to the serial port. ... Your thread may not be run, even though 20 milliseconds have elapsed, because other higher-priority threads may need to be run. ...
    (microsoft.public.vc.mfc)
  • Re: PWS433a Diagnostic LEDs Info?
    ... DrSlinky wrote: ... I've got the null modem cable connected to the top serial port on both ... If I reboot the PWS while connected, I'll get an "A" on the terminal screen, but nothing else. ... Row 2, Column 3 stays lit up, no matter how long I let it sit. ...
    (comp.sys.dec)
  • Re: MSComm control array
    ... > array every 500 milliseconds. ... > software is querying the plc status by sending a special character to the ... > serial port and then enables an other 400 millisecond timer (this is ... I also simulated the control array in a new project ...
    (microsoft.public.vb.general.discussion)
  • MSComm control array
    ... array every 500 milliseconds. ... On each serial port is connected a plc and the ...
    (microsoft.public.vb.general.discussion)