LTSPICE #15: Measuring Total Harmonic Distortion (THD)

Поделиться
HTML-код
  • Опубликовано: 28 янв 2025

Комментарии • 18

  • @DanBullard
    @DanBullard Год назад +2

    I liked the hammer icon, that is exactly the way I think of it.

  • @lovelevo
    @lovelevo 4 года назад +4

    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)

  • @chumariesco
    @chumariesco Год назад

    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 ;)

  • @lucianoc7745
    @lucianoc7745 4 года назад +6

    only one BIG detail: maximum timestep can have a serious impact over the .four command results.
    (p.d. sorry for my caveman-level english)

  • @audiokees4045
    @audiokees4045 8 месяцев назад

    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.

  • @Hovedak
    @Hovedak Год назад

    Hi, what does the "plotwingsize" option mean? I couldn't find it in LTspice help. Thanks.

    • @trevortjes
      @trevortjes  Год назад

      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.

  • @lucianodebenedictis6014
    @lucianodebenedictis6014 4 года назад +3

    Thanks for telling me my sine generator isn't that better than a triangle

  • @engine28111
    @engine28111 3 года назад

    hi.. i unable to view THD in error log for triangle waveform. pls guide me.

  • @ekanshjindal4638
    @ekanshjindal4638 Год назад

    I am getting THD as 74.146324%(49146395638540.664000%). What does the term in bracket indicate?

    • @trevortjes
      @trevortjes  Год назад

      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.

    • @ekanshjindal4638
      @ekanshjindal4638 Год назад

      @@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?

    • @trevortjes
      @trevortjes  Год назад

      @@ekanshjindal4638 is the signal very complex? Are you choosing the right fundamental?

    • @ekanshjindal4638
      @ekanshjindal4638 Год назад

      @@trevortjes I am giving just two normal pulses to a comparator of an ADC and getting out two output signals.

  • @augustogomez9372
    @augustogomez9372 3 года назад

    What does the result in parenthesis in the THD analysis mean?

    • @trevortjes
      @trevortjes  3 года назад

      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."

    • @augustogomez9372
      @augustogomez9372 3 года назад

      @@trevortjes ok! Appreciate your quick response!

  • @colinheckman2362
    @colinheckman2362 3 года назад +4

    Instructions not clear, resistor stuck in ear.