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 '.'. But yea, now I see
the source of the confusion. Hummm...still a mystery.
>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.
...Jim Thompson
| James E.Thompson, P.E. | mens |
| Analog Innovations, Inc. | et |
| Analog/Mixed-Signal ASIC's and Discrete Systems | manus |
| Phoenix, Arizona Voice:(480)460-2350 | |
| E-mail Address at Website Fax:(480)460-2142 | Brass Rat |
| http://www.analog-innovations.com | 1962 |
Freedom of the Press? We Have a New Definition of Yellow Journalism
pstrang_nospam@gmail_nospam.com - 12 Feb 2006 23:18 GMT
Thank you!
Jim Thompson - 12 Feb 2006 23:19 GMT
>Thank you!
You are quite welcome!
...Jim Thompson
| James E.Thompson, P.E. | mens |
| Analog Innovations, Inc. | et |
| Analog/Mixed-Signal ASIC's and Discrete Systems | manus |
| Phoenix, Arizona Voice:(480)460-2350 | |
| E-mail Address at Website Fax:(480)460-2142 | Brass Rat |
| http://www.analog-innovations.com | 1962 |
Freedom of the Press? We Have a New Definition of Yellow Journalism
Stuart Brorson - 13 Feb 2006 01:21 GMT
: Looks like the analysis command has to be "wrapped" in a
: .control/.endc statement.
This should not be the case. Moreover, I tried running the OP's
circuit using my copy of ngspice. I had no problem entering the
tran command & getting good results without the dot (.tran) or without
using .control/.endc.
Note to Helumt: The OP was issuing tran at the command line. You
don't need the dot notation when the SPICE directive is issued at the
command line. YOu only need it when you embedd the command in the
SPICE netlist. Of course, you never touch the SPICE command line when
you use LTSpice, so you use the dot notation all the time. ;-)
Questions for the OP:
1. Did following Jim's suggestion (use .control/.endc) really work
for you?
2. If so, when you built ngspice, which configure flags did you set?
Can you please post (or e-mail me) the config.log file? Of particular
interest are the first half-dozen or so lines of the log file which
output what the configure parameters were. I'd like to see if because
I wonder if the control stuff (newly added) has some bugs in it.
Stuart
Fred Bartoli - 16 Feb 2006 10:40 GMT
> >Thanks guys. Yea, I'm simulating a small sinusoidal signal ontop of a
> >DC source (just playing around).
[quoted text clipped - 21 lines]
> 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

Signature
Thanks,
Fred.