rofunc.devices.emg.export#

1.  Module Contents#

1.1.  Functions#

process_one_channel

param data:

raw emg data

param sampling_rate:

recorded at samples / second

param k:

filtering rate of data to samples / k / second

return:

process_all_channels

param data:

raw emg data

param n:

number of emg channels

param sampling_rate:

recorded at samples / second

param k:

filtering rate of data to samples / k / second

return:

plot_raw_and_clean

plot_abs_and_mvc

plot_mvcscale_and_activity

1.2.  Data#

SAMPING_RATE

k

n

1.3.  API#

rofunc.devices.emg.export.SAMPING_RATE = 2000#
rofunc.devices.emg.export.k = 4#
rofunc.devices.emg.export.n = 2#
rofunc.devices.emg.export.process_one_channel(data, sampling_rate, k)[source]#
Parameters:
  • data – raw emg data

  • sampling_rate – recorded at samples / second

  • k – filtering rate of data to samples / k / second

Returns:

data_filter: Filter the original EMG signals (from the Delsys system, 2000 Hz) to the desired frequency data_clean: Clean the raw EMG signals data_mvc: Calculate the Maximum Voluntary Contraction (MVC) of the EMG signals data_abs: Take the absolute value of the EMG signals

rofunc.devices.emg.export.process_all_channels(data, n, sampling_rate, k)[source]#
Parameters:
  • data – raw emg data

  • n – number of emg channels

  • sampling_rate – recorded at samples / second

  • k – filtering rate of data to samples / k / second

Returns:

DATA_FILTER: Filter the original EMG signals (from the Delsys system, 2000 Hz) to the desired frequency DATA_CLEAN: Clean the raw EMG signals DATA_MVC: Calculate the Maximum Voluntary Contraction (MVC) of the EMG signals DATA_ABS: Take the absolute value of the EMG signals

rofunc.devices.emg.export.plot_raw_and_clean(data_filter, data_clean, k)[source]#
rofunc.devices.emg.export.plot_abs_and_mvc(data_abs, data_mvc, k)[source]#
rofunc.devices.emg.export.plot_mvcscale_and_activity(data_mvcscale, data_activity, k)[source]#