# Total Harmonic Distortion THD for the rectifier

I have a circuit with rectifier and this cause the non-linearity and consequently harmonic. I show it on the oscilloscope and then collect the signal from the oscilloscope to the computer by using the Labview. The procedure is to find the Total Harmonic Distortion. Could anyone please guide me what I have to do in order to find the THD? I know that the f(input),f(sampling), N(number of samples)and M(number of cycles) are very important. Thanks in advance!

• So, this is a bit too broad; THD is defined in literature, so I'm sure you've come up with an approach so far. Discuss that! It's far easier to help you when it's clear where you're stuck. Jan 16, 2020 at 22:14
• Also, this feels like you want to calculate what you're looking for in a purely mathematical consideration before you do any circuit analysis with an oscilloscope. Did you do that? How can you calculate the THD of that mathematical representation of perfect rectifier? That gives you info on where to look (hint: spectrum). Jan 16, 2020 at 22:22
• my input signal is a (sin) signal to the rectifier and the task is to make an automatic calculation to calculate the THD.I collected 4096 samples of my rectified signal that I already collected from the oscilloscope through Labview. I went from the Discrete to FFT then I stuck there ... Jan 16, 2020 at 22:30
• yeah, as said, with pen and paper, calculate where the harmonics of a perfect rectifier would lie – and then just look at the same places in your labview software. Jan 16, 2020 at 22:37
• Your question is a bit too broad. However, there are standards in the power industry on how to measure the THD. For example, the IEC 61000-4-30 specifies a method. webstore.iec.ch/preview/info_iec61000-4-30%7Bed3.0%7Db.pdf However it's not free
– Ben
Jan 17, 2020 at 3:07