Hello Olimex community,
Well, I tend to acquire the raw ECG signal from the board but it seems tricky to have High and Low portions for a single channel. Any way how to concatenate both of them to a single signal?
Also, I would like to work on one of these alternatives:
1. Acquiring the data on Matlab. But, there will be a problem of data format matching since Serial.Write send the data as ASCII while we need them on Matlab as Float/int/Double.
2. Saving the ECG on text file or MS Excel file.
I hope that could be feasible so we can make interpretation for the ECG on Matlab (mainly Biometric identification).
Thank you so much in advance.
I found this post -> https://bakerdh.wordpress.com/2013/01/31/a-first-look-at-the-olimex-eeg-smt/ when surfing the web. I haven't tried it, but it seems that he is getting the signal data and plotting it.
I'm also trying to get the raw signal from the board, but in my case I'm using C++. So, I am using portions of the brainbay source code, exactly in the file ob_eeg.cpp, the function parse_byte_P2() I'm adding this code:
unsigned short chn1Value = (PACKET.buffer<<8) + PACKET.buffer;
unsigned short chn2Value = (PACKET.buffer<<8) + PACKET.buffer;
sprintf_s(str, "chn1: %u, chn2: %u\n", chn1Value, chn2Value);
I don't know if that code is correct (I'm still testing it), but I'm getting some integers that seems to correspond to the raw signal of the board.
I hope this can help you.
Done using Matlab and LabVIEW:
Could you guide us through your youtube video project? What did you use to read the data from the shield EKG directly into matlab and labview?
Thanks for any input