LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

BNC 2121 and PCI 6602 for counter application

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

 

0 Kudos
Message 1 of 3
(2,810 Views)

Anyone can help? Thanks a lot!

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

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?

 

DAQmx Shipping Examples

 

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. 

Sam Burhans
Senior Product Manager
National Instruments
0 Kudos
Message 3 of 3
(2,782 Views)