Real time EMG signals with arduino and matlab

Started by skyliner34, January 25, 2015, 07:36:32 PM

Previous topic - Next topic

skyliner34

Hi,

I currently have the following EMG shield:

https://www.olimex.com/Products/Duino/Shields/SHIELD-EKG-EMG/

which I am using with an Arduino UNO Rev3 microcontroller. The code I have used for the arduino IDE is available at the same link. I have interfaced the arduino with matlab 2012 so I can get real time EMG readings however whenever I try and test the connection, I get the following error message:

"Warning: Unsuccessful read: Matching failure in format.
Error using arduino (line 122)
Unknown sketch. Please make sure that a sketch provided with the package is running on the board. "

I have tried the code provided on the Olimex website but it still is not working. What is the solution to this?

Thanks to anyone that replies.




LubOlimex

Hello there,

Unfortunately, we have no experience with MatLab.

However, have you stumbled upon this video: https://www.youtube.com/watch?v=2SIAzPiq9Dk? It seems the same as your project.

Best regards,
Lub/OLIMEX
Technical support and documentation manager at Olimex

shindy41

Hello skyliner34,

I have the same problem, but I'm developing with the ECG machine. Did you find the Arduino I/O packet at the MathWorks website? I found that you have to upload at the IDE the code you find in this packet that I said to communicate to the MATLAB. The test communication works if you upload just the code of communication. After it, if you try to upload the ECG code and error appear saying that the port COM4 is using by another program. So, I imagined that if you integrate both codes it must work according to the reading of the pins of the Arduino, but I have the same result as you.

Did you find a solution for this problem? If you can share in this topic I'll be very thankful.