LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

dual peak counting

Hi. I have been counting peaks using labview with the help of a simulated signal. Just one. What I have to do now is make another simulated signal and test coincidence--how many times these two signals cross a certain threshold at the SAME time before I stop it. Anybody have an idea how I can go about that? Thanks in advance!

0 Kudos
Message 1 of 2
(2,106 Views)

You can use a case structure inside of a for loop. Feed the waveform data into the for loop and add shift registers to the for loop to keep track of the number of times the peaks are both above the threshold. You can use the logic gate "And" to find when both waveforms are greater than the threshold. Here is a snippet of some sample code.

0 Kudos
Message 2 of 2
(2,051 Views)