12-05-2012 12:31 AM
Hi,
I want to process waveform coming from Scope.
I have to calculte positive peaks and get average value for values below 0.
Right Now I have done this
1- Replaced all values above 0 with 0.
2- Calculated there average values through basic DC RMS calculation VI.
3- Initialized an array with this average value.
4- Searched for maximum value between two consecutive 0 values and placed this value in already initialized array.
this whole processing is taking a lot of time.
Could you please provide a better way of doing this.
I tried to use Waveform Peak Detection VI but it is calculationg peaks through maxima and minima and giving me a lot of peak points although I reqiure only 1 in a period.
Please see attached I/p and Required O/P waveforms
12-06-2012 12:46 AM
Hello,
Anyone there,
Please help me out.
12-06-2012 01:01 AM
@Aojha wrote:
Hi,
I want to process waveform coming from Scope.
I have to calculte positive peaks and get average value for values below 0.
Right Now I have done this
1- Replaced all values above 0 with 0.
2- Calculated there average values through basic DC RMS calculation VI.
3- Initialized an array with this average value.
4- Searched for maximum value between two consecutive 0 values and placed this value in already initialized array.
this whole processing is taking a lot of time.
Could you please provide a better way of doing this.
I tried to use Waveform Peak Detection VI but it is calculationg peaks through maxima and minima and giving me a lot of peak points although I reqiure only 1 in a period.
Please see attached I/p and Required O/P waveforms
What you have described doesn't make sense given your waveform. You said "get positive peaks and get average value for values below 0". There are no positive peaks with amplitudes below 0 in your waveform. There are VALLEYS however.
But then your output waveform shows that you have marked 8 positive peaks of amplitude 2.5 (which are ABOVE 0) and zeroed all other values, including the first two periods of the waveform. Please explain.
12-06-2012 01:07 AM
Probably I was not clear in my question.
I want to measure all the positive peaks with reference to average value below 0.
12-06-2012 01:09 AM
In the O/p Waveform I could not get the first two period due to some error in my coding. I am looking for them.
12-06-2012 01:14 AM
@Aojha wrote:
Probably I was not clear in my question.
I want to measure all the positive peaks with reference to average value below 0.
Sorry, I'm just not understanding what that means......long day.
12-06-2012 01:34 AM
1- I have to get all th positive peaks value.
2- I have to take average value of values below 0.
3- I have to take difference of Positive peak value and average value below 0.
12-06-2012 02:12 AM
Let,s say I have an I/p waveform as attached in Post.
Then I have to find all the positive peaks.
Now suppose I have a waveform like intermediate waveform (attached). Here are only negative values, then I have to find its average.
12-06-2012 05:15 AM
Dear all,
Please help me.