LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

THD calculation for ADC

Hello all,

I'm trying to calculate THD(total harmonic distorsion) parameter of an ADC, the point is that i must calculate the FFt
in order to get THD without using any of the labview VIs (FFt and Vrms VIs) i've made the VI
joined below(i used some vis found on NI forums), the problem is that i still don't have an idea how to replace Vrms vi with math nodes.
 
If anyone could help me, i would be greatfull

Regards,

 

NB:i'm using 2009 labview basic version

0 Kudos
Message 1 of 4
(2,917 Views)

Hi smiti,

 

you have been asking this in a different thread, so why don't you stick with your original one?

 

To replace the Vrms VI you could simply look into it to get it's internals. To replace the FFT vi is just silly...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 4
(2,912 Views)

 

 

 

 

 

0 Kudos
Message 3 of 4
(2,890 Views)

You can try interfacing FFTW dll into labview.

 

The FFTW can be found at http://www.fftw.org/install/windows.html 

 

Interfacing to dlls in LabVIEW is discussed here: https://www.ni.com/docs/en-US/bundle/370109b/resource/370109b.pdf

 

When you have FFT result, arriving at various Vrms values should be a breeze through.

 

Good Luck!

0 Kudos
Message 4 of 4
(2,886 Views)