Difference between revisions of "Control Systems Library for Python"

From Murray Wiki
Jump to navigationJump to search
Line 1: Line 1:
This page collects some notes on a control systems library for Python.  The plan is to create an alternative to the MATLAB Control System Toolbox™ that can be used in courses and for research.
This page collects some notes on a control systems library for Python.  The plan is to create an alternative to the MATLAB Control System Toolbox™ that can be used in courses and for research.  This page collects information about the toolbox, in preparation for actually writing some code.  If you stumble across this page and know of a similar package or would like to contribute, let me know.


== Architecture ==
== Architecture notes ==


== Installation instructions ==
== Installation instructions ==


Here's what I had to do to get all of this to work
I'm using the [http://ipython.scipy.org/moin/ IPython] environment, with the the [http://matplotlib.sourceforge.net/ matplotlib] extensions (which enables MATLAB-like plotting).  I am doing all of my playing on OS X, using fink.
 
Here's what I had to do to get the basic setup that I am using.
# Install SciPy - I did this using fink.  Have to use the main/unstable tree.
# Install SciPy - I did this using fink.  Have to use the main/unstable tree.
# Install matplotlib - Need this for plotting
# Install matplotlib - Need this for plotting
Line 23: Line 25:
=== Python documentation ===
=== Python documentation ===
* [http://www.scipy.org/ SciPy.org] - main web site for SciPy
* [http://www.scipy.org/ SciPy.org] - main web site for SciPy
** [http://ipython.scipy.org/moin/ IPython] - enhanced shell for python
**  [http://matplotlib.sourceforge.net/ matplotlib] - 2D plotting for python

Revision as of 17:28, 23 May 2009

This page collects some notes on a control systems library for Python. The plan is to create an alternative to the MATLAB Control System Toolbox™ that can be used in courses and for research. This page collects information about the toolbox, in preparation for actually writing some code. If you stumble across this page and know of a similar package or would like to contribute, let me know.

Architecture notes

Installation instructions

I'm using the IPython environment, with the the matplotlib extensions (which enables MATLAB-like plotting). I am doing all of my playing on OS X, using fink.

Here's what I had to do to get the basic setup that I am using.

  1. Install SciPy - I did this using fink. Have to use the main/unstable tree.
  2. Install matplotlib - Need this for plotting
  3. Install ipython - interactive python interface

Small snipped of code for testing if everything is installed

import from scipy *
import from matlibplot *
a = zeros(1000)
a[:100]=1
b = fft(a)
plot(abs(b))
show()

Related documentation

Python documentation