FFT plots for currents [SOLVED]

Hi everybody,

I been working a lot with SPICE simulations and it is very good to see that ngspice integration has been greatly improved these last releases.

I could make useful transient simulations but I got some problems when trying to get Fourier analysis. It turns out that you need to run them from global labels for no apparent reason, but this only works for voltages. I guess that is a feature that has not yet developed because even after selecting the currents to plot in the New Simulation Tab window they will just disappear in the simulation tab configuration window.

Has anybody been able to run a FFT from currents? If so, can you describe the procedure?

Thank you!

FFT with net lables on voltage nodes is possible for me (8.99 nightly on MS Windows).

FFT on device currents seems to be not supported. A buggy netlist is sent to ngspice.

This will require a bug report at Issues · KiCad / KiCad Source Code / kicad · GitLab .

In the meantime you may do something like this:


and make an fft of v(/vmeas)

Hi @holger,

Thank you very much for your reply. Nice workaround, I use to solve this complications like you showed in your schematic. However It does not work out of the box by putting the source and changing the gain. I had to configure the SPICE model of the source with the following lines:

.subckt ammeter in+ in- out+ out- params: gain=1Meg
Emeas out+ out- in+ in- {gain}
.ends

This topic was automatically closed after 90 days. New replies are no longer allowed.