06-21-2007 11:10 AM - edited 06-21-2007 11:10 AM

Message Edited by altenbach on 06-21-2007 09:12 AM
06-22-2007 09:38 AM
Thanks you very much!
This is exactly what I had in mind. Sorry for the unclear description of the problem in my first post. I don`t want to show my implementation after seeing your code.. I have tried it, and it works very well. I used the code in your previous post in the 0-case to count the first interval.
I made a testfile with a record size of 360000 samples, and 5 records. The counting took less than 10 seconds on my PC with 360000 samples interval size (6 minutes). In my application this data corresponds to 5 hours sampling at 10ms sample rate, and record size of 1 hour. I made a larger file corresponding to 24 hour of data, but I have to read the data in chunks to be able to process it.