09-08-2009 05:04 PM
Hi everyone,
I'm trying to write a VI based off of one described here that counts the number of rising pulse edges from an external function generator with a frequency of 7.7KHz using the USB 6211 DAQ.
The function generator is plugged into Ctr 0 in the DAQ. A pulse train with user defined parameters at Ctr 1 is used to buffer the input signal. Ideally, I want the VI to count and sum the number of pulse edges. When the count reaches an arbitrary number (i.e. count = 256), it should reset the count and add one to a separate count to keep track of the number of "resets."
The pulse train I'm using to buffer the 7.7KHz input has the parameters of 16KHz, a duty cycle of 0.50, and an idle state of low.
The problem with my VI is that the count numbers doesn't match the frequency of the input signal. Running the VI for 10 seconds should give back a "reset" count around 300 based on the input frequency. But in actuality, I'm seeing only around 100. I am sure that this is not a hardware issue since running the example Count Digital Events.vi returns an accurate count. Running my VI in the highlight execution mode returns an Error -200279.
I attached the VI that I'm currently working on using LabVIEW version 8.0. I would appreciate any input.
Thank you for your time,
admlam
09-09-2009 05:57 PM
10-12-2009 11:50 PM
Hi, I pretty much have the same question. But I have LabView 7.1 & can't seem to open the "Count Digital Events_reset.vi". Can you post one that is compatible with my version?
Thanks!!
-c
10-13-2009 02:08 PM