NI Home
Cart Cart | Help
Hello Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI
You are here: 
NI Home > NI Developer Zone > NI Discussion Forums


Reply
Member
Rockmountai's TDMS
Posts: 3
0 Kudos

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

Trusted Enthusiast
crossrulz
Posts: 3,728
0 Kudos

Re: Missing Data Points Between Consecutive Iterations in a While Loop?

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.



Kudos always welcome for helpful posts...Kudos always welcome for any post.
Member
Rockmountai's TDMS
Posts: 3
0 Kudos

Re: Missing Data Points Between Consecutive Iterations in a While Loop?

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.

By using this web site, you accept the Terms of Use for this web site. Please read these Terms of Use carefully before using any part of this site. Please go here for information on ni.com's copyright infringement policy.
My Profile | Privacy | Legal | Contact NI © 2011 National Instruments Corporation. All rights reserved.    |    E-Mail this Page E-Mail this Page