Modify the default EMG configuration

Before running any commands, be sure your virtual python environment is activated. Type activate pycgm39copy

Default EMG settings are configured in the file: CONDA_PATH/envs/ENV_NAME/Lib/site-packages/pyCGM2/Settings/emg.settings

We predefined the location of 16 emg devices as follow

EMG channelMuscleSide
EMG1rectus femorisLeft
EMG2rectus femorisRight
EMG3vastus lateralisLeft
EMG4vastus lateralisRight
EMG5semitendinosusLeft
EMG6semitendinosusRight
EMG7tibialis anteriorLeft
EMG8tibialis anteriorRight
EMG9soleusLeft
EMG10soleusRight
EMG11NoneNone
EMG12NoneNone
EMG13NoneNone
EMG14NoneNone
EMG15NoneNone
EMG16NoneNone

If your session does not match with this configuration, you can place the emg.settingscopy file into your data folder, then amend it.

Do it manually or through the command

  • open a miniconda prompt
  • change your current directory to target the data folder
  • run the command pycgm2.exe SETTINGS Edit -ecopy or pycgm2.exe SETTINGS Edit --emgcopy

For instance, if your emg 1 and 2 are placed on the gluteus medius rather than the rectus femoris, open the emg.settingscopy and edit the section

CHANNELS:
    Voltage.EMG1 :
        Muscle : GLUMED 
        Context : Left 
        NormalActivity : GLUMED 

    Voltage.EMG2 :
        Muscle : GLUMED
        Context : Right
        NormalActivity : GLUMED
copy

You can also permanantly alter the emg settings.
Find and ammend the emg.settingscopy file