Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

How to avoid cumulative buffered edge counting

Hi!
 
When I performing buffered edge counting with NI-6602 and Labview 8.2 I encounter 3 problems.
 
1) The firs value is not correct, I have read from this problem from NI homepage http://digital.ni.com/public.nsf/allkb/8579D7E5CD494D9F86256B3E005798C2
    it said I need to dicard the first value, but how do I do that?
 
2) What can I do to avoid the cumulative counting? Right now it add number of pulses with the previous value, see the figure below
 
I want program to do like this, look next figure

of course without the first value.
 
3) The counting roll over so the values in the vector adding number of pulses continuously.
 
Best Regards,
 
Giang Vu
 
 
 
 
0 Kudos
Message 1 of 3
(3,208 Views)

1.  The simplest way is to use one of the 1D Array functions to Delete element #0.   (Or use Array subset with start index=1 and leave the length unwired).

2. You need to perform Period measurement (not edge counting) to get the behavior in the 2nd diagram.

3.  Sorry, I don't think I understand this question.

-Kevin P.

ALERT! LabVIEW's subscription-only policy came to an end (finally!). Unfortunately, pricing favors the captured and committed over new adopters -- so tread carefully.
0 Kudos
Message 2 of 3
(3,200 Views)
Hi Kevin P!
 
Thanks a lot, I'm sorry didn't explain clearly about number 3 but now I will try to do as you told me, maybe it will solve number 3 as well. I will let you know if I have problems with that or not.
Thanks again
 
Sincerely
 
GiangV
0 Kudos
Message 3 of 3
(3,187 Views)