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.rawI 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,