From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Measuring Sine wave deformation

Solved!
Go to solution

Hi Folks.

 

I am trying to measure the signal deformation coming from a scope. Its a typical sine wave that distorts as the input increases (shown in the attachments). I was initially just going to subtract a known signal from the recieved signal to give the difference. The point by point error is to big for this. I am also trying to determine the slope over time and the rapid change of slope would indicate the point. However point by point calculation of the slope gives too much error to. Is it possible to generate accurate slopes or is there a function that determines if a signal is non-sinusoidal??

 

Thanks,

 

Mark.

Download All
0 Kudos
Message 1 of 3
(2,611 Views)
Solution
Accepted by topic author MarkGreally

For a quick visual check you can use the tone detection vi and export the residual signal, maybe the rms value of the residual is a nice value (THDN)

 

Measures of deformation of a periodic signal are (usually) often done in the frequency domain and called harmonic distortion. There are also vis that already can do that for you.  (SINAD) . The THD level is usually used.   Look under signal procesing - wfrm measure

 

Your traces look like a 1g steel ball accelerometer calibration to me. 🙂 

Greetings from Germany
Henrik

LV since v3.1

“ground” is a convenient fantasy

'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'


Message 2 of 3
(2,585 Views)

Thanks Henrik.

0 Kudos
Message 3 of 3
(2,551 Views)