Re: More accurate Timerevent



Gert Baars wrote:

When Timer interval gets below 200 (millisec)
the timer event becomes increasingly inacurate.

My application requires 20 mS accurate (50 Hz sampling rate for FFT)
timer events. Is this somehow possible (Delphi 7).
I prefere to avoid a thread.


no, its not.
i don't know what you're doing but, you will need some sort of
interface card that will buffer incoming readings. When your app
gets time to check it, it will have data waiting for you.
If you're sampling audio level data, then use the sound card and
use the PCM bits for the timing. Use Event driven messages to
signal your app that data is waiting for you.
With a device like a sound card, you don't need to do what you're
doing.
FFT requires a chuck of PCM bits, simply sample a chuck, apply a
DFT to it. pick out the data you need. Mean while, you can use the
PCM bits as your event timing.
etc..
if your doing this with an outboard device ? good luck.



--
"I'm never wrong, once i thought i was, but was mistaken"
Real Programmers Do things like this.
http://webpages.charter.net/jamie_5

.



Relevant Pages

  • Re: More accurate Timerevent
    ... the timer event becomes increasingly inacurate. ... My application requires 20 mS accurate (50 Hz sampling rate for FFT) ... Is this somehow possible. ... Should work equally well with Delphi. ...
    (alt.comp.lang.borland-delphi)
  • Re: More accurate Timerevent
    ... the timer event becomes increasingly inacurate. ... My application requires 20 mS accurate (50 Hz sampling rate for FFT) ... Is this somehow possible. ...
    (alt.comp.lang.borland-delphi)
  • More accurate Timerevent
    ... the timer event becomes increasingly inacurate. ... My application requires 20 mS accurate (50 Hz sampling rate for FFT) ...
    (alt.comp.lang.borland-delphi)

Quantcast