Re: Oscillator Simulation

Felix Salfelder <[email protected]> Tue, 13 Sep 2016 14:37:52 +0200
Newsgroups gmane.comp.gnu.gnucap.general
Message-ID <[email protected]>
Hi Richard

On Tue, Sep 13, 2016 at 10:03:51PM +1000, Richard Gipps wrote:
> VCC 10 0 PULSE(0 8)

there seems to be a problem with the time zero value of that pulse
try "VCC 10 0 PULSE(0 8 1p)" instead. maybe "(0 8 0 1p)".
(not sure if this is a bug or a feature. spice implements some guessing
around zero-time transitions...)

> .OP

the tran command will care of that. there should be no difference if you
leave it out.

> .TRAN 1p {stop_time} {start_print} 1p
> .PRINT TRAN V(1)

in gnucap, the .print command actually attaches probes to the circuit.
after the simulation it's too late. but i think, generally, you can run
a simulation, attach probes, then continue.

maybe you want to try this instead

.TRAN 0 {start_print} {start_print/10}
.print tran v(nodes) v(VCC)
.TRAN {stop_time} trace=a

have fun
felix