Quantcast
Channel: LabVIEW topics
Viewing all articles
Browse latest Browse all 66648

Time based peak matching VI

$
0
0

(Using LabVIEW 2012)

 

Hi all,

 

I'm still fairly new to LV (and you will probably see evidence shortly), but I've been working on developing a VI for data acquisition of a gaussian shaped multiple channel PMT signal (voltage), where two separate signals appear with different amplitudes separated by a roughly constant time delay (with some tolerance), henceforth known as Spot 1 and Spot 2. I'd like to match these peaks given a time window. 

 

I've attached my attempt so far, but the way it functions, the while loop operates everytime there is new data from either Spot 1 or Spot 2. I only want it to operate when there is new Spot 2 data (as we are searching for a pair based on each spot 2. The queues contain peak data (time and amplitude) from a producer/consumer set of loops, and I'm just taking the data from there. I realize this could be done after the fact from a text file, but I would like a semi-realtime update as the experiment progresses.

 

So, I think the problem is I need to be able to only operate on new Spot 2 data and the continued influx of Spot 1 data is causing it to run and mismatch, but it could very well be something different, or maybe one of you has a much better idea how I might accomplish my goal.

 

Thanks for taking the time to help me out!


Viewing all articles
Browse latest Browse all 66648

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>