Page 1 of 1
EMG Excitation
Posted: Fri Feb 06, 2009 3:45 pm
by arziai
Is it possible to excite the muscles using EMG data in OpenSim?
RE: EMG Excitation
Posted: Tue Feb 10, 2009 12:12 pm
by aymanh
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
RE: EMG Excitation
Posted: Tue Feb 17, 2009 11:57 pm
by arziai
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?
RE: EMG Excitation
Posted: Tue Feb 24, 2009 10:17 am
by aymanh
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