Spice, electrical/electronic simulation & Python

Grant Edwards grante at visi.com
Tue Apr 17 10:32:19 EDT 2001


In article <3ADC2265.48A70FA0 at mek.dtu.dk>, Brian Elmegaard wrote:

>> > Has anyone thought about controlling spice through Python
>> > scripts,
>> 
>> more than once.... what do you have in mind? the problem i
>> didnt feel like tackling was the building of a netlist ... does
>> one create a GUI for entering circuits? or build off an
>> existing app.
>
>I am just now trying to implement an interface for flow sheets
>for energy sytems and chemical processes (not far yet, but I am
>learning python, oo, gui,...at the same time). AFAIK this would
>have a lot in common with what you want, so if you feel like it
>we can share ideas and code.

For my MS, I wrote a ladder-diagram editor in Scheme/Tk that
generated netlists (along with a program that compiled the
netlists into C source code).  The diagram editor is very
similar to a schematic editor -- in fact I initially used an
schematic-capture program to generate netlists for the compiler
before I had the ladder-diagram editor finished.

It's not terribly sophisticated -- it doesn't support buses or
multiple-page diagrams.  It should be fairly simple to
translate it into Tkintr.

 Doc:  http://www.visi.com/~grante/ladder.pdf
 Src:  ftp://ftp.visi.com/users/grante/stuff/led.tar.gz

-- 
Grant Edwards                   grante             Yow!  I guess you guys got
                                  at               BIG MUSCLES from doing too
                               visi.com            much STUDYING!



More information about the Python-list mailing list