LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

peaks in a buffer

I am trying to measure data at a high rate, 10^6 samples per second, and I am trying to use a buffer to read a larger percentage of data.  I am having problems getting the peak detector vi to work with the buffer, and for some reason I am not finding any peaks.  I tried using a signal generator to check the efficiency of the program, and knowing that there should be peaks, I measured 0.
 
I am attaching the basic part of the program, and any insights would be great.
 
Lars
0 Kudos
Message 1 of 2
(2,331 Views)
Take a look at what is coming out of the AI READ function.

It's an ARRAY of WAVEFORMS.

Take a look at what the PEAK DETECTOR has as an input.

It's an ARRAY of SAMPLES.

Take a look at the RED DOT (I hope you have coercion dots set to something visible, besides the bland default gray).

That means you are coercing an ARRAY of WAVEFORMS into and ARRAY of SAMPLES.

My guess is the coercion takes the START TIME component of the waveform as its output.

Which means your looking for peaks among the START TIMES of the various channels, which are presumably all the same.

You want to index the ARRAY of WAVEFORMS yourself, and pull out the Y data, and feed THAT to the peak detector.

Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
Culverson.com


LinkedIn

Blog for (mostly LabVIEW) programmers: Tips And Tricks

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