Tag Archives: Python

Real-time analysis of data from BioSemi ActiveTwo via TCP/IP using Python

JohnAlan (Jack) Keegan and I have been doing some interesting work on real-time electroencephalogram (EEG) analysis recently and we had a really productive practical session in the lab today. EEG is a recording of electrical activity in the brain, usually … Continue reading

Posted in Uncategorized | Tagged , , , , , , , , , , , , , , , , | Leave a comment

Simple communication with a TCP/IP device using Python

I had an interesting correspondence recently with Wim Bruyn from Holland who was using my SerialSend program to implement a remote-controlled relay system for switching appliances on and off automatically. The relays Wim is using (ETH002) are actually controlled via … Continue reading

Posted in Uncategorized | Tagged , , , , , , , , , , , , , | 15 Comments

Another Julia Set animation

Click this image to view the Julia Set animation (the gif file is about 5.3MB in size, so I didn’t want to embed it here directly): This is the Python code I used to generate the 200 individual frames in … Continue reading

Posted in Uncategorized | Tagged , , , , , , , , , | 2 Comments

Creating Julia Set images in Python

Today, I’ve been experimenting with creating Julia Set images in Python. Each of the four images above shows the same square region of the complex plane; between -2 and +2 on the real axis and between -2j and +2j on … Continue reading

Posted in Uncategorized | Tagged , , , , , , , , , , , | 18 Comments

Visualising transfer functions in the Z-domain

I’m fortunate to share an office with DSP guru Richard Hayes who, over the last week or so, has given me a couple of brilliant 20-minute tutorials on the Z-transform which have really helped to clear up some points that … Continue reading

Posted in Uncategorized | Tagged , , , , , , , , , , | 2 Comments

Drawing Trees with PyCairo

I’ve been spending some time this evening playing around with PyCairo, which is a very handy drawing library for Python. Actually, Cairo is the underlying drawing engine and PyCairo is a set of Python bindings for it. Anyway, in this … Continue reading

Posted in Uncategorized | Tagged , , , , , | Leave a comment