[free-electronic-lab] ngspice .PRINT I(<component>) won't work

Chitlesh GOORAH chitlesh at fedoraproject.org
Mon Sep 13 19:43:50 UTC 2010


On 13 September 2010 21:10, Ashwith Rego <ashwith at 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)


More information about the electronic-lab mailing list