LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Processing Scope Waveforms

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

Labview user
Download All
0 Kudos
Message 1 of 9
(3,123 Views)

Hello,

Anyone there,

Please help me out.

Labview user
0 Kudos
Message 2 of 9
(3,090 Views)

@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.

0 Kudos
Message 3 of 9
(3,078 Views)

Probably I was not clear in my question.

I want to measure all the positive peaks with reference to average value below 0.

Labview user
0 Kudos
Message 4 of 9
(3,076 Views)

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.

Labview user
0 Kudos
Message 5 of 9
(3,075 Views)

@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.

0 Kudos
Message 6 of 9
(3,073 Views)

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.

Labview user
0 Kudos
Message 7 of 9
(3,066 Views)

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.

Labview user
0 Kudos
Message 8 of 9
(3,056 Views)

Dear all,

Please help me.

Labview user
0 Kudos
Message 9 of 9
(3,046 Views)