2

I am trying to plot an FFT in LTspice using a .four command and the spice error log directly without using the FFT on LTspice (right click + view + FFT once the simulation is finished).

How is it possible to plot the data of the .four command at the end of the simulation from the spice error log?

Here is an example of the spice error log:

enter image description here

I cannot right click on the spice error log and plot FFT measured by the .four command.

Null
  • 7,448
  • 17
  • 36
  • 48
George
  • 87
  • 6
  • 1
    It can't plot it before the sim is ran so it has to be afterwards. – Andy aka Feb 14 '22 at 12:57
  • If all else fails, extract that part of the file and import it into a spreadsheet. (But the data shown is only the harmonics, not the full FFT) –  Feb 14 '22 at 13:47

1 Answers1

1

You can't plot the result of the .FOUR, that's meant to be a report in the error log, only. But you can plot the FFT of a waveform by making the waveform viewer window active > RClick > View > FFT. For the best results, be sure to include an integer number of periods for the waveform.

a concerned citizen
  • 21,167
  • 1
  • 20
  • 40