Hello, I’m trying to make the switch from LTSpice to KiCad. I’m having some trouble getting FFT analysis working.
I’ve drawn a minimal schematic consisting of a VSIN source with a simple two resistor voltage divider across it. I can run a TRAN analysis and plot the voltage at the middle of the voltage divider. I’ve added a global label to this point named “here”.
TRAN parameters are time step 1us, stop time 100ms. VSIN is the default 1kHz.
When I add an FFT analysis I get this error:
Error: Missing token in line 7:
linearize v(here)
Please correct the input file
Error: ngspice.dll cannot recover and awaits to be reset or detached
If I deselect the linearize inputs check box I get:
Error: Not enough tokens in line 7
fft v(here)
Please correct your input file
Error: ngspice.dll cannot recover and awaits to be reset or detached
I’ve tried plotting unlabelled points by their full name with the same result.
I’ve tried the release build and the nightly build with the same result.
I’m on a Fedora 41 system.
Thank you, I must be doing this part wrong.
I have no spice text commands entered on the schematic. It contains only:
voltage source
resistors
ground
label
My steps from a clean restart:
open schematic file
click top toolbar button “Simulator”
in the simulator window click top toolbar button “New Analysis tab…”
select analysis type “TRAN” from drop down menu
enter TRAN params Time step 1u, Final time 100m
Compatibility mode says “PSpice and LTSpice”
click “OK”
TRAN analysis tab is now visible but empty
click top toolbar button “Run Simulation”
the right side panel contains a list of things I can plot. I click “V(here)”
TRAN plot now visible
in the simulator window click top toolbar button “New Analysis tab…”
select analysis type “FFT” from drop down menu
a list of input signals is offered. I click “V(here)”
Checkbox “Linearize inputs before performing FFT” is checked
Compatibility mode says “PSpice and LTSpice”
click “OK”
FFT analysis tab is now visible but empty and error is added to the output log:
Error: Missing token in line 7:
linearize v(here)
Please correct the input file
Error: ngspice.dll cannot recover and awaits to be reset or detached
if I ignore error and click top toolbar button “Run Simulation” these additional errors are added to the output log:
** ngspice-44.2 shared library
** Creation Date: Sun Jan 12 00:00:00 UTC 2025
Note: No compatibility mode selected!
Circuit: *
Error: no such plot named tran1
Error: plot must be a transient analysis
Error: fft needs real time scale