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: 

Gated counting by both rising and falling edges with PCI 6229

Hello experts, I have a pulsed signal and a square wave gating, and I want to count the difference of pulse numbers between high gate and low gate in a single period (1kHz). What's the best way to realize this in labview? Thanks! I already had a little vi to count via only the rising or falling active edge.

0 Kudos
Message 1 of 3
(3,095 Views)

One method that is native to LabVIEW is change detection.  Since you have an M series PCI card, you will be able to access this feature.  It essentially detects changes on a digital signal when it switches between high and low.  Here's an article about it.

 

http://www.ni.com/tutorial/4102/en/

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

Thanks Dsun! That works!

Message 3 of 3
(3,068 Views)