I got a Neurosky Mindwave for Christmas and was immediately unimpressed with the standard software for it. So I took my basic understanding in python to it and quickly found my shortcomings. So I started poking around and found two pieces of code that I would like to combine.
My intent is to create a live graphing utility that takes input from the Mindwave and outputs it to graphs.
The first code I found was the interface to the Think gear. It receives the packets from the COM port and displays them using the logging method:
The second piece of code I found that I would like to integrate is the graphing method. I have extensively used the Tkinter package so I choose this as a first choice. I am open to easier methods that dont require to much third party software (matlab?) The graphing code I found here:
https://stackoverflow.com/a/7605072/1110140
What I would like to do is feed the output from the first into the second for live graphs. However I have no experience with the logging module and don't know how to segregate it from the original code to use as an input to the second. Also the code for the second is mostly for demonstration purposes and im again not sure how to manipulate it to look good with things other than the demo.
Any help is greatly appreciated.