Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Measuring Period <392ns (minimum period measurement capability)

Solved!
Go to solution

I am trying to measure a period less than 392ns and I get the error :

 

Error -200141 occurred at DAQmx Wait Until Don.vi:3580001

 

Possible reason(s):

Data was overwritten before it could be read by the system.

 

If Data Transfer Mechanism is Interrupts, try using DMA or USB Bulk.  Otherwise, divide the input signal before taking measurement.

Task Name: _unnamedTask<E85>

 

 I have attached a screenshot of my VI

0 Kudos
Message 1 of 8
(4,933 Views)

Hi ADI_Tony,

 

What hardware are you currently using to take this measurement? Depending on the hardware you are using this may be the issue. 

 

 

Regards,

Jake H
Applications Engineer
0 Kudos
Message 2 of 8
(4,906 Views)

I am using the PXI-6289.  It has an 80MHz counter which should still be able to "count" measure a period this fast. 

0 Kudos
Message 3 of 8
(4,898 Views)

Hi ADI_Tony,

 

What do you have your Number of Samples control set to? According to the specification sheet for the PXI-6289, the FIFO for the Counter is only 2 samples.

 

NI 6289

http://www.ni.com/pdf/manuals/375222b.pdf

 

If your number of samples, was greater than 2 it would make sense that you received the buffer overflow. Have you looked at the "Counter-Read Pulse Width and Frequency (Continous)" example in the NI Example Finder. Are you able to run this code without getting an error? 

 

So, if there are more 

Regards,

Jake H
Applications Engineer
0 Kudos
Message 4 of 8
(4,865 Views)

I have been taking 500 samples.  For slower frequencies there is not problem.  The only time I have an issue is trying to measure a period <392ns.  Greater than 392ns works no problem

0 Kudos
Message 5 of 8
(4,841 Views)
Solution
Accepted by topic author ADI_Tony

Hi ADI_Tony, 

 

From the screenshot in your original post, it looks like you are using only 1 counter, which is fine for low frequencies. Have you tried using a two counter method that works better for high frequency measurements? An example for which can be found below.

 

Continuously Measure Digital Periods (High Frequency, 2 Counter Method)

https://decibel.ni.com/content/docs/DOC-11424

 

Let me know if this works!

Regards,

Jake H
Applications Engineer
0 Kudos
Message 6 of 8
(4,811 Views)

Or use some  external FF  ->  frequency divider

 

But the two counter method (see excamples) should do it.

 

 

Greetings from Germany
Henrik

LV since v3.1

“ground” is a convenient fantasy

'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'


0 Kudos
Message 7 of 8
(4,797 Views)

I used the 2 counter method and was able to measure period down to 112ns now.  Works great.  Will have to play with the divisor option as well to see how that works.  Thank you for the help!

0 Kudos
Message 8 of 8
(4,787 Views)