EMG Excitation
- Amirrezq Ziai
- Posts: 4
- Joined: Wed Dec 10, 2008 2:36 pm
EMG Excitation
Is it possible to excite the muscles using EMG data in OpenSim?
- Ayman Habib
- Posts: 2248
- Joined: Fri Apr 01, 2005 12:24 pm
RE: EMG Excitation
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
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
- Amirrezq Ziai
- Posts: 4
- Joined: Wed Dec 10, 2008 2:36 pm
RE: EMG Excitation
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?
- Ayman Habib
- Posts: 2248
- Joined: Fri Apr 01, 2005 12:24 pm
RE: EMG Excitation
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
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