From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Is there a lower frequency limit to events in buffered event counting using a PCIe-6259?

Solved!
Go to solution

I am using a PCIe-6259 to count events using buffered event counting (using C/C++).

I set up to count finite samples with a call to DAQmxCfgSampClkTiming() and specify the gate frequency for rate.

As long as the frequency of events is high relative to my gate frequency (e.g., 10s or 100s of events per gate), everything works fine, but if my event frequency drops below my gate frequency, I get a counter overflow error (-200141). And the gate frequencies we're talking about are rather modest, typically 1-10 kHz.

I do not see this problem on a dedicated counter card like the PCIe-6612.

Thanks for any help!

  Karl

 

0 Kudos
Message 1 of 3
(2,211 Views)
Solution
Accepted by topic author KKRand

Hmm, I'm surprised you're getting *that* specific error.  I'd have expected something related to duplicate count prevention.

 

You probably have to turn it ON in order to buffer up values of 0 during intervals where you get consecutive gate edges (sample clocks) with no source edges.  It continues to seem like odd terminology that you get *more* measured values when you *prevent* duplicates.

 

Here's another link to an NI-written explanation, plenty of other forum discussions touch on it as well.

 

 

-Kevin P

CAUTION! New LabVIEW adopters -- it's too late for me, but you *can* save yourself. The new subscription policy for LabVIEW puts NI's hand in your wallet for the rest of your working life. Are you sure you're *that* dedicated to LabVIEW? (Summary of my reasons in this post, part of a voluminous thread of mostly complaints starting here).
Message 2 of 3
(2,194 Views)

Thanks, Kevin!

 

Indeed turning on the duplicate count prevention did the trick!

 

  Karl

 

0 Kudos
Message 3 of 3
(2,171 Views)