Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

Missing Data Points Between Consecutive Iterations in a While Loop?

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

0 Kudos
Message 1 of 3
(5,531 Views)

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.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 3
(5,528 Views)

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.

0 Kudos
Message 3 of 3
(5,525 Views)