The Designer's Guide Community
Forum
Welcome, Guest. Please Login or Register. Please follow the Forum guidelines.
Jul 17th, 2024, 1:45pm
Pages: 1
Send Topic Print
Using .PLOT in ngspice (Read 7851 times)
simsim
New Member
*
Offline



Posts: 4

Using .PLOT in ngspice
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,
Back to top
 
 
View Profile   IP Logged
Pages: 1
Send Topic Print
Copyright 2002-2024 Designer’s Guide Consulting, Inc. Designer’s Guide® is a registered trademark of Designer’s Guide Consulting, Inc. All rights reserved. Send comments or questions to editor@designers-guide.org. Consider submitting a paper or model.