cancel
Showing results for 
Search instead for 
Did you mean: 

Harmonic Distortion

Harmonic Distortion

Message contains an image

I am taking measurements of acceleration, speed and rotational movement and I keep that data in a txt file. After having these measurements recorded I want to make a harmonic distortion, and find the specific harmonics / fundamental harmonics, the one that predominates.
I am using the distortion measurements function but when I press it it appears (image 1) but the problem is that it only gives me this output (image 2), do not give me a graph with frequency, why ??
If anyone can help me I appreciate it.

ni1.GIF

 

My output:

ni2.GIF

 

 

 

8 REPLIES 8

Re: Harmonic Distortion

Message contains an image

ni3.GIF

 My code 

Bob_Schor
Knight of NI

Re: Harmonic Distortion

Please attach your code.  We need something we can edit, dissect, even run (it also might help to attach a Data File so we can see what your code does with your data).  The best way to attach the code is to compress the folder containing your LabVIEW Project and attach the resulting .zip file.  A picture (tiny!) of a small piece of your code is not so helpful.

 

Bob Schor

Highlighted

Re: Harmonic Distortion

Message contains an attachment

Thank you, here are the files.

Ricardo Rebelo 

GerdW
Knight of NI

Re: Harmonic Distortion

Hi Ricardo,

 

please don't SPAM people by asking for help using PersonalMessages! This is considered "rude behaviour"…

 


@RicardoRebeloo1 wrote:

I want to make a harmonic distortion, and find the specific harmonics / fundamental harmonics, the one that predominates.


Your VI does exactly what you want to do: find the one (1) dominating harmonics value!

 

Your example data file contains just 4 samples per columns, so determining harmonics from them seems rather senseless…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019

Re: Harmonic Distortion

Message contains an image Message contains an attachment

OK, sorry. But I am not able to obtain the results graph as shown in the figure. I used the file with only 4 data, but I used another with more data and it still doesn't work.

sinal 1.GIF

Re: Harmonic Distortion

Message contains an image Message contains an attachment

OK, sorry. But I am not able to obtain the results graph as shown in the figure. I used the file with only 4 data, but I used another with more data and it still doesn't work.

sinal 1.GIF

GerdW
Knight of NI

Re: Harmonic Distortion

Hi Ricardo,

 

so you don't want the results of that ExpressVI (SINAD, amplitude of first harmonic), but you want that FFT plot shown as "Preview"!?

 

Why don't you call a FFT function in your VI?

 

Did you know you can convert each ExpressVI into an ordinary VI and look into its block diagram (and subVIs)? That often helps to create a subVI to its own requirements!

ExpressVIs are not made for your specific requirements, but only to fulfill the most often used requirements: this can be a huge difference…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019

Re: Harmonic Distortion

I want to find out which frequency predominates, that is, the fundamental harmonics.