Can ngspice lose a space?

Usiing a PWL voltage source, I run into the following error message:


Misplaced operator, probably because of the missing space between 1m and -10.
The line was entered in the schematic editor, modify parameters of a voltage source, and entering on the line simulation parameters, with the space correctly in place:

In the modify panel of the source I entered the following Sim.params: PWL = (0 0 1m -10 2m 10 3m 0) r= 3m.

Does ngspice somewhere lose the space or do I make an error?

Please have a look at the ngspice manual, chapter 4.1.4.
The correct syntax is
PWL (0 0 1m -10 2m 10 3m 0) r=0
I will check if the error message may be improved.

Please also note that r=3m is rejected, as the repetition point has to be within the x range, the last value excluded.

1 Like