How to log data in C# accurately at 10ms from an embedded device?

61 views Asked by At

I want to read/sample the data from an embedded device accurately at periodic intervals of 10ms in C# console application. What is the best way to log the data accurately at every 10ms interval.

I tried with System.Timers and Threading Timer but I am able to log fewer data points than required. I am developing my console application in .NET Compact framework 3.5.

What is the best way to log the data accurately at such lower intervals?

I am facing issue with no. of data points. It should be same for fixed interval of time, but it varies with +/- 1 data point. I am using stopwatch class.

0

There are 0 answers