11-19-2013 12:30 PM
Hi,
I am trying to develop the counter application to count how many pulse rising edges given a specific time period.
I have setup the computer with the connection of BNC 2121 and PCI 6602.
The output of my device is the pulse train, where a failing edge denotes one bit error. My objective is to count how many errors given a specific time period.
Is there any vi example to start with?
BTW, I have tried one example, count digital events.vi. But I can not observe any output error counts. Please help!
Thanks!
Guanbo
11-20-2013 02:55 PM
Anyone can help? Thanks a lot!
11-20-2013 03:34 PM
Hi gbzheng,
I think I need a little clarification for your request to better answer your question. Are you trying to count both rising and falling edges in a specific time period, or are you just trying to count the falling edges (errors) in a specific time period?
If you need deterministic timing using an external clock, I would recommend using the Counter – Count Edges (Continuous Clock) example.
If you do not need the deterministic timing, you could just use the software timed Counter – Count Edges example.
For either example you will need to create a constant (or control) for the edge input on the DAQmx Create Virtual Channel.vi. You will need to specify Falling as the edge type because rising is the default value.