May I please know if it is possible to sweep two v...
# analog-design
s
May I please know if it is possible to sweep two voltage sources in ngspice using xschem, both in opposite directions .dc V4 0 5 1m V5 5 0 -1m My ngspice simulator does not give any result, the Reference value keeps on changing from 0 to 5 and does not stop. So simulation results cannot be viewed
s
the
.dc V4 0 5 1m V5 5 0 -1m
does a nested dc sweep. It starts with V5 = 5 and does 5000 dc iterations for V4 from 0 to 5, then does the same 5000 iterations with V5=4.999 and so on. Total is 25,000,000 steps. If you want to do only two sweeps, then you should do:
Copy code
.dc V4 0 5 1m
write results.raw
set appendwrite
.dc V5 5 0 -1m
write results.raw
If you want to sweep the two voltages at the same time you should use a
bsource.sym
for V5:
🙌 1