Contributions to XCircuit
Otherwise known as ``Neat Hacks.''
As XCircuit develops further toward the model of a compact C core
with extended functionality provided by Python scripts, I hope to
create a separate page for contributed code, to include contributed
Python scripts which extend and enhance the capabilities of XCircuit
(see section "Help!" on the XCircuit home page).
-
Zhengdao Wang (zhengdao@ece.umn.edu) at the University of
Minnesota ECE department, has written a Matlab-to-xcircuit
Matlab script. The purpose of the script is to convert
a vector of points into an xcircuit object and save the
result into an xcircuit library file. This allows arbitrary
functions to be plotted into xcircuit for display of sinusoids,
exponents, etc. Now why didn't I think of that? I spent a
long time trying to think how to convert Matlab output to
xcircuit and didn't even think of this much more elegant
solution. This code can be expanded upon in many ways
(multiple objects, color, 2-D objects, text, etc. ad infinitum)
for anyone wishing to take on that task. As it is, this code
is a MUST HAVE: I can't recall how many times I wanted a
simple curve to a specific equation and tried to approximate
it with splines (ugh!). Here you go:
xcircuit.m Matlab script
test.m Matlab test program (generates
a sine wave)
-
Paul Ortyl (ortylp@key.net.pl) has kindly provided a Perl
script for converting xfig files to xcircuit. This program
should be considered alpha code and is provided without any
guarantees. If you have any extensions or fixes for the
program, please feel free to pass them on.
fig2xcircuit
-
Jayant Jere (j_jere@yahoo.com) claims to have written a Java tool
to convert netlists (e.g., spice?) into schematics
(e.g., xcircuit?). In his last email to me, July 27 (1999), he
claimed it was "still not production ready". Please bug him about
it until it is.
Back to the xcircuit home page. . .
email: tim@bach.ece.jhu.edu