I have a signal which is a bit noisy at the high and low state. I want to calculate accurate amplitude by taking 3 to 4 max points and 3 to 4 min points to take average of each and find amplitude.
What could be the best way out ?
I have attached a picture of the signal
You've just attached a picture of a graph. How is the data actually stored?
A 1D array?
An array of X,Y values?
Are you doing this just for one iteration of high and low points or will it repeat continually?
I have a signal which is a bit noisy at the high and low state.
I really doubt that the noise is different at the peaks. It's just easier to see there. Is the signal always in the same general shape (looks like a sine with a few simple harmonics)? Is this a part of a continuous signal with many periods or are you analyzing exactly one period as shown? Does the amplitude change over time and are you trying to follow that change?
Where is the data coming from and what does it represent? Can you attach a few sets of example data?
The sinal is the output from a sensor and it is being chopped by a optical chopper. Yes it is the part of contineous signal and i am analyzing just one period of it. What I am following is I will increase the chopper frequency with every iteration (say from 4hz to 8hz and so on untill 200hz) and se the decreasing amplitude with increasimng chopper frequency. I tried to use built in vi for amplitude but it is not giving out correct amplitudes.
Once you know the size of the noise, you might get close by just taking the local min&max difference and subtracting the noise amplitude.
What is the "built-in vi for amplitude"? can you be more specific?
Again, can you attach a series of typical data?
This is the response signal and i want to take more than one maximum and minmum points
Hello, sorry i could not reply in time yesterday because i had to leave.
So, as i said that I am getting a signal from data acquistion NI-USB, basically there are two signals through two channels one is the signal that i am getting from optical chopper (square wave) and another one is the signal from thermopile sensor.
The signal from the thermopile is what I am working on, this signal is a contineous signal having 1000 sample rate and a 1000 number of samples.
What I want is to take the average of some 3 max points and 3 min points at every high and low locations on the signal.