I'm a newbie to spice. I've been doing the experiments and reading the first chapter on DC. I've installed about 3 versions of spice on Windows 7 and linux. I've followed the instructions in the chapter on "Computer simulation of electric circuits" but I don't get the same results. After running the program in different ways, all I get is some line about the temperature. According to the doc, I should be getting some voltage and power output. I suspect I'm either doing something wrong, or need to do something else. Any help would be appreciated. Thanks in advance.
Input file:
cat test.cir
my first circuit
v1 1 0 dc 10
r1 1 0 5
.END
Running the program yields this:
ngspice test.cir
******
** ngspice-21 : Circuit level simulation program
** The U. C. Berkeley CAD Group
** Copyright 1985-1994, Regents of the University of California.
** Please submit bug-reports to: ngspice-bugs@lists.sourceforge.net
** Creation Date: Sun Sep 11 15:12:12 UTC 2011
******
Circuit: my first circuit
ngspice 1 -> run
Doing analysis at TEMP = 27.000000 and TNOM = 27.000000
ngspice 2 -> exit
Input file:
cat test.cir
my first circuit
v1 1 0 dc 10
r1 1 0 5
.END
Running the program yields this:
ngspice test.cir
******
** ngspice-21 : Circuit level simulation program
** The U. C. Berkeley CAD Group
** Copyright 1985-1994, Regents of the University of California.
** Please submit bug-reports to: ngspice-bugs@lists.sourceforge.net
** Creation Date: Sun Sep 11 15:12:12 UTC 2011
******
Circuit: my first circuit
ngspice 1 -> run
Doing analysis at TEMP = 27.000000 and TNOM = 27.000000
ngspice 2 -> exit