We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hello everyone,
to visualize the data I gather from a mobile EMG/ EDA/ ECG device (like with a electro-cardiogramm/ heart monitor in Dr. House or Monty Python's Meaning of Life), a Bitalino device, I'd like to use Processing. In principle, I'm pretty sure I would find a way to render this. However, before trying to implement this all by myself, I'd like to ask if someone here knows of a library or an application that might be fit for visualizing these data, so I wouldn't have to build it all from scratch.
Thanks in advance, Marius
Answers
That works like a charm, thanks!
Hi Marius,
Could you please shortly describe how you connect bitalino with processing or even share your code?
Pedro
Hi Pedro,
I won't share my full code here as it's a bit messy and buggy, so I'm a bit ashamed. ;-) But I'll be glad to help.
I have just used the JAVA API that is available at the Bitalino site. In the main loop of the tread generated by this class, the data is continuously read from the device once it has been connected. Essentially, you get objects of the type Frame there; Frame is defined in the Bitalino API.
From this object, you can get the data you read/ want (the values from the sensors are raw values from 0 to 1023). I use a listener and just throw these data over to my Processing class holding the Canvas, to draw the values.
If you like, just drop me a PM and I can mail you the code. But as I said, it was trial and error, there are too many threads and too few comments inside. ;-)
All the best, Marius
@Marius Hi Marius. How do you import the bitalino api to the processing? Where should I put the api files and how should I configure it? I am kind of noob on this, thank you in advance! :)
What I did is that I downloaded the API_Java file from BITalino's website, and copied it to my libraries folder under my processing's working path. I renamed the subfiles and then I could see the BITalino library as a contributed library in processing. However, when I imported the BITalino library, it showed as follow:
I don`t know how to deal with this problem, so I am now got stuck :(
@TfGuy44 Very nice! However, the faded-out lines leave a grayish trace, see here: http://tinybrain.de/1013743
Any way to fix this?
Here's the actual program: http://tinybrain.de/1013742
The fix for that is to draw everything properly. To do that you need to track all the data properly. Like this.