LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Waveform peak detection ...Please have a look

Hi folks,
           I am trying to acquire 2 signals and then detect the peaks of each of them and divide the peaks and display it in a waveform chart.But my Peak detection doesnt work at all...I tried plugging in values from 3 to 10000 but it just doesnt work...Please have a look at my VI and feel free to point out any errors in my VI..
 
Thanks
0 Kudos
Message 1 of 4
(2,775 Views)
Without data there is not much we can tell. Place an indicator at the output of the DAQ VI and run the program with typical data. Then make the current data in the indicator Default. Save. Remove the DAQ VI and change the indicator to a control. Post that VI so we can see the data. Or save the data to a file and post the file.

Does your data actually have peaks? What errors do you get, if any?

Lynn
0 Kudos
Message 2 of 4
(2,754 Views)

Hi,

Had a look at ur VI

tell me, do u need a single peak for every iteration or a series of peaks above a certain threshold?

If it is a single peak for each acquired waveform , then extract y array from the waveform cluster( you have already done it in ur VI) and connect it  to 'find array min max' function found in array functions palette and u get the single peak for each waveform.

If it is a series of peaks u are interested in, then compare all these values inside a for loop.

Index each element inside a 'for' loop, check it for threshold using a conditional case structure and put it inside a shift register.

regards

Dev

 

 

 

 

0 Kudos
Message 3 of 4
(2,752 Views)
Your data acquisition vi collects only one samp[le per channel, change this to 'Aquire Waveforms.vi' and see if you have better results.
 
Ian
0 Kudos
Message 4 of 4
(2,746 Views)