Comment 1 for bug 1836502

Revision history for this message
Holger Vogt (h+vogt) wrote :

We now have several threads here concerning simulation failures with recent KiCad and ngspice.
https://bugs.launchpad.net/kicad/+bug/1836104
https://bugs.launchpad.net/kicad/+bug/1835296
and this one.

To come to a conclusion on the error, we always need the following information: Operating system, KiCad version info, ngspice version info.

The reason to ask this info is that ngspice-30 under Windows OS has no problems reading the subcircuit and its instantiation in the X line as given above, except for the fact that there are strange quotes in the above cited X line (XPOT1 Net-_POT1-Pad1_ “/pot_out” GND pot r=100k k=0.5):

“/pot_out” instead of "/pot_out".

Adding the quotes to net names was done in in https://git.launchpad.net/kicad/commit/?h=5.1&id=216573bf4827e8ca98635e1b95efa0c02c94b53f

It was a reaction to my bug report https://bugs.launchpad.net/kicad/+bug/1821502.

Maybe there was a misunderstanding or I did not express thoroughly enough that this was about running the simulation with external ngspice (as described in http://ngspice.sourceforge.net/ngspice-eeschema.html#external).

The extra quotes needed there are not required in the netlist, but in extra commands given for plotting or other commands to process the data in an ngspice .control section added by the user (see the example in the tutorial).

In fact there is no need to put quotes around net names, because ngspice does not have a problem with '/' in net names, where it is treated as an ordinary character. The KiCad fix did not remove the problem in the external .control section, but on Windows OS it did not hurt, so I did not further bother about it. Maybe that in macOS the quotes are generated or interpreted differently and cause the problems?

In my view it would be o.k. to revert the commit
https://git.launchpad.net/kicad/commit/?h=5.1&id=216573bf4827e8ca98635e1b95efa0c02c94b53f