EMG Excitation

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Amirrezq Ziai
Posts: 4
Joined: Wed Dec 10, 2008 2:36 pm

EMG Excitation

Post by Amirrezq Ziai » Fri Feb 06, 2009 3:45 pm

Is it possible to excite the muscles using EMG data in OpenSim?

User avatar
Ayman Habib
Posts: 2248
Joined: Fri Apr 01, 2005 12:24 pm

RE: EMG Excitation

Post by Ayman Habib » Tue Feb 10, 2009 12:12 pm

Hi Amirrezq,

You sure can, you just need to convert your EMG data to the format expected by OpenSim (.xml). If the data is in a .mot/.sto file format we use a utility to do this conversion. I posted it on the Wiki page at
http://wiki.simtk.org/opensim/

You need to have OpenSim1.8_InstallationDir/bin in your path for it to work.

Good luck,
-Ayman

User avatar
Amirrezq Ziai
Posts: 4
Joined: Wed Dec 10, 2008 2:36 pm

RE: EMG Excitation

Post by Amirrezq Ziai » Tue Feb 17, 2009 11:57 pm

Thank you Ayman. I have my EMG excitation data in text files with two columns, time in one and the corresponding EMG voltage in the second. Do you happen to know how I can change that to .mot files or is there any way to convert my .txt files to .xml directly?

User avatar
Ayman Habib
Posts: 2248
Joined: Fri Apr 01, 2005 12:24 pm

RE: EMG Excitation

Post by Ayman Habib » Tue Feb 24, 2009 10:17 am

Hi Amirezq,

What you have is basically a motion file, you just need to manually add a header (to help parsing). Check any of the motion files in our distribution for an example of the format.

Hope this helps,
-Ayman

POST REPLY