Bases: decida.ItclObjectx.ItclObjectx, Tkinter.Frame
simulate using NGspice and plot results.
synopsis:
NGspice is a graphical user-interface to run NGspice. There is a netlist pane to directly enter a netlist and a plotting pane for displaying results. The plotting pane is a full DataViewx window, which has all of the features of that class.
The DeCiDa application ngsp simply instantiates one NGspice object.
constructor arguments:
- parent (Tkinter handle) (default=None)
handle of frame or other widget to pack plot in. if this is not specified, top-level is created.
- **kwargs (dict)
keyword=value specifications: options or configuration-options
options:
- netlist (str, default=None)
netlist lines.
- cktfile (str, default=None)
circuit file to read.
example (from test_NGspice_1):
from decida.NGspice import NGspice
NGspice(cktfile="hartley.ckt", xcol="time", ycols="v(c)")
configuration options:
- verbose (bool, default=False)
enable/disable verbose mode
- plot_height (str, default="10i" for MacOS, else "6i")
Height of plot window (Tk inch or pixelspecification)
- plot_width (str, default="10i" for MacOS, else "6i")
Width of plot window (Tk inch or pixel specification)
- xcol (str, default="time")
X-column of plot to generate after simulation.
- ycol (str, default="v(1)")
Y-columns of plot to generate after simulation.
public methods:
- public methods from ItclObjectx