Re: simple ngSPICE simulation headache




"Jim Thompson" <To-Email-Use-The-Envelope-Icon@xxxxxxxxxxxxxxx> a écrit dans
le message de news:r5fvu1dh7hjr90k056u7qgnhpe6tq1ucij@xxxxxxxxxx
On 12 Feb 2006 14:52:13 -0800, "pstrang_nospam@xxxxxxxxxxxxxxxx"
<pstrang@xxxxxxxxx> wrote:

Thanks guys. Yea, I'm simulating a small sinusoidal signal ontop of a
DC source (just playing around).

In ngspice, the commands don't start with a '.'.

Are you sure? Then how do you differentiate between a transient
COMMAND and a T-line?

But yea, now I see
the source of the confusion. Hummm...still a mystery.

Leave it to the Eunuchs crowd to obfuscate the simple...

From....

http://ngspice.sourceforge.net/octavespice.html

* simulation de RC2
.control
tran 10n 10000n
write
.endc

Looks like the analysis command has to be "wrapped" in a
.control/.endc statement.


Don't know ngspice, but the .control .endc is the XSPICE standard control
block that allow lots of nice scripting.
Inside the block, no dot prefixing.

You can still use dotted commands with no control block.

IOW, either write:

..control
tran 10n 10000n
write
.endc

or:
..tran 10n 10000n


--
Thanks,
Fred.


.