On 13 September 2010 21:10, Ashwith Rego <ashwith(a)gmail.com> wrote:
Hi
I've just begun using ngspice and found that I cannot plot the current
output. Also, I cannot specify the name of a circuit component in a .PRINT
or .PLOT statement. Only the node numbers seem to work. Here is an example:
Ohm' Law
Vin 1 0 5
R1 0 1 10K
.DC Vin 1 5 1
.PRINT DC V(R1)
.END
ngspice doesn't seem to recognize R1 in the .PRINT statement. I get the
following error:
Hello there,
According to the ngspice manual,
$ evince `rpm -ql ngspice | grep pdf`
V(N1,N2) specifi es the voltage diff erence between nodes N1 and N2.
Your netlist should rather entail :
.PRINT DC V(1,0)