Re: High res timer

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



This MSDN article also seems to show a decent example in Managed Code:

http://msdn2.microsoft.com/en-us/library/aa964692.aspx

--
Chris Mullins, MCSD.NET, MCPD:Enterprise, Microsoft C# MVP
http://www.coversant.com/blogs/cmullins

"Jon Slaughter" <Jon_Slaughter@xxxxxxxxxxx> wrote in message
news:mGYDi.1441$4J3.592@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Is it possible to have a synchronous thread... actually a timer that is
beyond the 1khz/1ms resolution that .NET offers?

I want to poll the parallel port at rates beyond 1khz... about 10 to 100
times that rate if possible.

Essnetially I want to monitor the parallel port for data and display it
but I need a fast but somewhat precise way of knowing the sample rate.

Doing some tests on just a simple thread I can get speeds at around 150mhz
or so with a normal priority System.Thread. I figure that since I just
need about 1/1000 of that it shouldn't be that big a deal.

Is this possible in C#.NET? If not, is it possible to write a simple
driver in unmanaged C++ that either polls the port or hooks onto an
interrupt(synced) to get the data to a C# app?

Thanks,
Jon



.



Relevant Pages

  • Re: Three-phase power: Phase Estimation
    ... You'd need at least 7200 samples per cycle to get 0.1 degrees resolution I should think. ... I'm not sure you can live with a lower sample rate because the temporal resolution implied by your desired measurement is 4.63 msec or a bandwidth of around 260kHz. ...
    (comp.dsp)
  • Re: Maximum resolution in Fourier
    ... samplewindow of about 2 seconds and take a spectrum analysis of that with a ... Apparently the resolution is usually given as ... recordings of with up to 2048 Hz sample rate, so I imagined that with a high ... 8.6Hz wave (we are looking at the peak energy in different ranges from 3 to ...
    (comp.dsp)
  • Re: Bits and Bass
    ... frequencies under 100Hz. ... amount of knowledge of digital signals. ... In a nutshell, and simplistically speaking, the bit resolution is ... and Fso is the output sample rate. ...
    (rec.audio.tech)
  • Re: Comparing FFTs of different resolutions
    ... Yes-- and without a sampling rate, we don't know the total length. ... which is all that is required to deduce resolution ... with 1 sec worth of data at sample rate F and N samples, ... The sample rate and duration are held constant for the FFTs a year apart. ...
    (comp.dsp)
  • Re: Reading parallel port with constant sample rate
    ... Do you think it is possible to write a module (in a real-time 3rd party product) for scanning the parallel port at a specified sample rate and raising an event within a .NET application when a certain condition is met? ... reading it every 10ms for example without exception. ...
    (microsoft.public.dotnet.languages.vb)