Nelson Rodriguez
12/01/2022, 2:08 AM-b
parameter when starting ngspice, but in simple words, ngspice runs whatever it is in the file.cir
and that's all (then it closes).
• In the interactive mode, I run the file and then the ngspice prompt remains there waiting any input from my keyboard.
• And control mode is just when I add a control section (or import a file with one of it).
Now batch mode allows some commands (tran, sp, pz, op, meas, trig-targ, find-when, avg, deriv
, etc -chapter 15-) and interactive mode another ones (alias, altermod, compose, display, diff, load, plot, option, run, save
, etc -chapter 17-) some of them can be mixed into a control section, but others are mutually exclusive.
Am I right?Stefan Schippers
12/02/2022, 12:45 PMrun
starts a simulation, display
to print the saved vectors, write
to write them to file, plot
to get a wave plot. All these 'interactive' commands an also be embedded within a .control / .ends section for convenience.
They behave as these commands were given from keyboard.
In interactive mode you an also break a simulation with '`ctrl-C`' write
temporary results into a file and then resume
simulation
There is some overlap between commands that can be given in interactive mode (tran, save, plot) and batch mode (.tran, .save, .plot)Linen is a search-engine friendly community platform. We offer integrations with existing Slack/Discord communities and make those conversations Google-searchable.
Powered by