Great tutorial. It took me a while to realise that without .options it doesn't show 0% distortion even for a simple sine wave. Maybe add the full directives to the description ;)
I have some strange things, what is now partial distortion and total distortion in LTspice? I think the new version from adi is not that oke with this, I get when fft plot is -100dB of a class d amp I get trouble with measurement, it says total distortion is 0.00012 or so, and partly distortion is 0.35 procent. I do hear also that the total distortion is what is set in .four and partly the rest, bacuse it amps do switching maybe this is the cause. thanks.
The first % is the THD using the desired user inputted amount of harmonics. The % in parenthesis is theoretically over all the harmonics. This way, if the 2nd value differs greatly from the 1st, you might've chosen too few harmonics and have a unreliable thd measurement.
@@trevortjes the difference is still coming out to be huge even after taking 20000 harmonics. Could you tell me the reason or anything wrong I might be doing?
The first % is the THD using the desired user inputted amount of harmonics. The % in parenthesis is theoretically over all harmonics. This way, if the 2nd value differs greatly from the 1st, you might've chosen too few harmonics and have a unreliable thd measurement. Original text: "The 2nd figure an alternative method of computing THD. It nominally includes all harmonics but numerically difficulting in identifying the fundamental limits it actually use. It's just bonus information for the guy that asked for the feature. You can ignore it. But is the number is higher the previous number, it is an indication that you didn't include enough harmonics in your THD calculation."
I liked the hammer icon, that is exactly the way I think of it.
Thank you for clear expressions it helped me for my thesis. (It will be good if you mention about why you write ".options" commands by the way)
Great tutorial. It took me a while to realise that without .options it doesn't show 0% distortion even for a simple sine wave. Maybe add the full directives to the description ;)
only one BIG detail: maximum timestep can have a serious impact over the .four command results.
(p.d. sorry for my caveman-level english)
I have some strange things, what is now partial distortion and total distortion in LTspice? I think the new version from adi is not that oke with this, I get when fft plot is -100dB of a class d amp I get trouble with measurement, it says total distortion is 0.00012 or so, and partly distortion is 0.35 procent. I do hear also that the total distortion is what is set in .four and partly the rest, bacuse it amps do switching maybe this is the cause.
thanks.
Hi, what does the "plotwingsize" option mean? I couldn't find it in LTspice help. Thanks.
Setting this option to 0 ensures the data does not get compressed. Compression of the data could in essence alter the results to be less accurate.
Thanks for telling me my sine generator isn't that better than a triangle
hi.. i unable to view THD in error log for triangle waveform. pls guide me.
I am getting THD as 74.146324%(49146395638540.664000%). What does the term in bracket indicate?
The first % is the THD using the desired user inputted amount of harmonics. The % in parenthesis is theoretically over all the harmonics. This way, if the 2nd value differs greatly from the 1st, you might've chosen too few harmonics and have a unreliable thd measurement.
@@trevortjes the difference is still coming out to be huge even after taking 20000 harmonics. Could you tell me the reason or anything wrong I might be doing?
@@ekanshjindal4638 is the signal very complex? Are you choosing the right fundamental?
@@trevortjes I am giving just two normal pulses to a comparator of an ADC and getting out two output signals.
What does the result in parenthesis in the THD analysis mean?
The first % is the THD using the desired user inputted amount of harmonics. The % in parenthesis is theoretically over all harmonics. This way, if the 2nd value differs greatly from the 1st, you might've chosen too few harmonics and have a unreliable thd measurement. Original text:
"The 2nd figure an alternative method of computing THD. It nominally includes
all harmonics but numerically difficulting in identifying the fundamental
limits it actually use. It's just bonus information for the guy that asked for
the feature. You can ignore it. But is the number is higher the previous
number, it is an indication that you didn't include enough harmonics in
your THD calculation."
@@trevortjes ok! Appreciate your quick response!
Instructions not clear, resistor stuck in ear.