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,319 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.

 

https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z000000PAn9SAG&l=en-US

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

Thanks Dsun! That works!

Message 3 of 3
(3,292 Views)