07-10-2012 11:33 PM
Hello, Folks
I am trying to stream consecutive frequencies of a pulse train into a TDMS file as shown in the attachment. But can't help wondering that if there is any missing data point (frequency of pulse(s)) between two consecutive iteratiosn of the while loop.
I guess my question is that if it is possible that at the instant when a pulse frequency comes in, the N-1 th iteration of the while loop just finished up and the N th loop didn't started? If there is such a instant, then it is possible that a pulse frequency number could be missed, am I right please?
Looking forward to any response/suggestion, I really appreciate that!
Best Regard
07-11-2012 07:19 AM
The card is making measurements based on hardware timing and you are reading whatever is in the buffer. So you shouldn't be missing any frequencies due to how fast you can read the buffer.
07-11-2012 08:52 AM
I guess that also depend on how big the buffer is, since I tried to sample 3000 frequency numbers at a time but the program just failed, then I need to decrease the number till around 2000, then the program is able to sample continuously.
This makes me wonder that the program has to read all the samples at a time and dump thos numbers to TDMS files. Then pulls in new frequency numbers in the buffer. And during these operations, I am not sure if there is going to be any frequency number missed being acquired.