The Designer's Guide Community Forum
https://designers-guide.org/forum/YaBB.pl
Simulators >> Circuit Simulators >> Using .PLOT in ngspice
https://designers-guide.org/forum/YaBB.pl?num=1363156792

Message started by simsim on Mar 12th, 2013, 11:39pm

Title: Using .PLOT in ngspice
Post by simsim on Mar 12th, 2013, 11:39pm

Friends,

I am using ngspice and text netlists to simulate simple circuits. Here I would like to be able to plot the relevant signals in batch mode. However after I enter the following
source ac_test_batch.cir
run out.raw

I can not see the plots. The example netlist in ngspice distribution looks like this:

Code:
* AC test
* output v(2) is a complex vector
Vin 1 0 DC 0 AC 1
R1 1 2 100
C1 2 0 1u

.AC DEC 10 10 100K

.plot ac  mag(v(2)) abs(v(2)) vm(2)
.plot ac  v(2) real(v(2)) imag(v(2))
.plot ac  db(v(2)) vdb(2)
.plot ac   atan(Im(V(2))/Re(V(2))) phase(v(2)) vp(2) cph(v(2))
*.print ac v(2)

.end


Please help me in plotting graphs in batch mode.

Thanks,

The Designer's Guide Community Forum » Powered by YaBB 2.2.2!
YaBB © 2000-2008. All Rights Reserved.