When I generate a ngspice netlist from a circuit, e.g. demo laser_driver, eeschema adds / to certain node names, e.g. to in and out of the laser driver's netlist (see below).
Please don't do that, better use for example _ , if any.
ngspice, if run in external mode (see http://ngspice.sourceforge.net/ngspice-eeschema.html#external for example), has difficulties in using /in or /out in plot, write and other control language commands, because the internal parser treats / as 'divide', and of course then an error occurs. The user has to manually add "" around these nodes, which is not ok in all circumstances.
.title KiCad schematic
.include "C:\Program Files\KiCad\share\kicad\demos\simulation\laser_driver\ad8009.lib"
.include "C:\Program Files\KiCad\share\kicad\demos\simulation\laser_driver\fzt1049a.lib"
.include "C:\Program Files\KiCad\share\kicad\demos\simulation\laser_driver\laser.lib"
V1 /in GND pulse(0 3 100n 1n 1n 20n 100n )
XU1 Net-_R2-Pad1_ Net-_C1-Pad1_ VDD VSS Net-_Q1-Pad2_ ad8009
V2 VDD GND DC 10
V3 GND VSS DC 10
C2 /out Net-_C1-Pad2_ 1p
R5 /out Net-_C1-Pad2_ 2.5
R1 Net-_C1-Pad1_ GND 220
R3 Net-_C1-Pad2_ Net-_C1-Pad1_ 220
C1 Net-_C1-Pad1_ Net-_C1-Pad2_ 1p
D1 /out GND laser
R4 /out Net-_R2-Pad1_ 220
R2 Net-_R2-Pad1_ /in 160
Q1 VDD Net-_Q1-Pad2_ Net-_C1-Pad2_ fzt1049a
.save @v1[i]
.save @v2[i]
.save @v3[i]
.save @c2[i]
.save @r5[i]
.save @r1[i]
.save @r3[i]
.save @c1[i]
.save @d1[id]
.save @r4[i]
.save @r2[i]
.save @q1[ib]
.save @q1[ic]
.save @q1[ie]
.save V(/in)
.save V(/out)
.save V(GND)
.save V(Net-_C1-Pad1_)
.save V(Net-_C1-Pad2_)
.save V(Net-_Q1-Pad2_)
.save V(Net-_R2-Pad1_)
.save V(VDD)
.save V(VSS)
.tran 10p 150n
.end
Application: eeschema
Version: (5.1.0)-1, release build
Libraries:
wxWidgets 3.0.4
libcurl/7.61.1 OpenSSL/1.1.1 (WinSSL) zlib/1.2.11 brotli/1.0.6 libidn2/2.0.5 libpsl/0.20.2 (+libidn2/2.0.5) nghttp2/1.34.0
Platform: Windows 7 (build 7601, Service Pack 1), 64-bit edition, 64 bit, Little endian, wxMSW
Build Info:
wxWidgets: 3.0.4 (wchar_t,wx containers,compatible with 2.8)
Boost: 1.68.0
OpenCASCADE Community Edition: 6.9.1
Curl: 7.61.1
Compiler: GCC 8.2.0 with C++ ABI 1013
Build settings:
USE_WX_GRAPHICS_CONTEXT=OFF
USE_WX_OVERLAY=OFF
KICAD_SCRIPTING=ON
KICAD_SCRIPTING_MODULES=ON
KICAD_SCRIPTING_PYTHON3=OFF
KICAD_SCRIPTING_WXPYTHON=ON
KICAD_SCRIPTING_WXPYTHON_PHOENIX=OFF
KICAD_SCRIPTING_ACTION_MENU=ON
BUILD_GITHUB_PLUGIN=ON
KICAD_USE_OCE=ON
KICAD_USE_OCC=OFF
KICAD_SPICE=ON
@Jon, FYI don't forget to check for duplicate nets when replacing '/' with some other character. This fix should probably be cherry-picked to 5.1 as well. Thanks.