cancel
Showing results for 
Search instead for 
Did you mean: 

Waveform Extraction

Waveform Extraction

Hii,

 

I am having a continous sine or square wave in a waveform in that i want to analysis each cylce of that waveform. Now i want to extract each cycle programatically how to do it.. can any 1 suggest me an idea...

2 REPLIES 2
johnsold
Knight of NI

Re: Waveform Extraction

If the signal to noise ratio is good, look for positive-going zero crossings to define the beginning of each cycle.

 

If the signal to noise ratio is poor, it is much more difficult unless you have other information about the timing of the signal.

 

Lynn 

DFGray
NI Employee (retired)

Re: Waveform Extraction

You can use Fourier techniques (e.g. Extract Single Tone Information) to find the frequency and phase, provided the waveform has a consistent period.  With this information, you can then use Get Waveform Subset to extract the portion you want and analyze it.  If noise is an issue, you can get a small subset around your level crossings and use that with a fitting routine to polish the start and end points.  The fitting routine will depend on what your waveform is, how much data you have, and how much noise you have.