User Tools

Site Tools


visual3d:documentation:emg:filtering:integrate_emg

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
visual3d:documentation:emg:filtering:integrate_emg [2024/06/19 12:47] sgrangervisual3d:documentation:emg:filtering:integrate_emg [2024/07/17 15:45] (current) – created sgranger
Line 1: Line 1:
-====== linear envelope ======+====== Integrate EMG ======
  
-==== computing the emg envelope using rectify and lowpass filter ====+===== Linear Envelope =====
  
-this section will compute the emg envelope using rectify and lowpass filter. rectify takes the absolute value of every element of a signal. visual3d calculates signal rectification using the following formula: x(ti)abs(x(ti))+=== Computing the EMG Envelope using rectify and lowpass filter ===
  
-==== lowpass filter cutoff ====+This section will compute the EMG Envelope using rectify and lowpass filter. Rectify takes the absolute value of every element of a signal. Visual3D calculates signal rectification using the following formula: x(ti)abs(x(ti))
  
-the default lowpass filter in visual3d is a fourth order butterworth filter.+=== Lowpass Filter Cutoff ===
  
-butterworth filters have an upper limit on the magnitude of the cutoff frequency.+The default lowpass filter in Visual3D is a fourth order butterworth filter.
  
-the maximum theoretical cutoff frequency is (sampling_rate*0.802/2).+Butterworth filters have an upper limit on the magnitude of the cutoff frequency.
  
-visual3d is a little more conservative than that because we have found the filter to be unreliable at the theoretical limits.+The maximum theoretical cutoff frequency is (sampling_rate*0.802/2).
  
-the highest cutoff frequency that visual3d will allow you is 0.393* sampling-rate.+VIsual3D is a little more conservative than that because we have found the filter to be unreliable at the theoretical limits.
  
-if your emg signals are sampled at 1000 hz, the highest cutoff frequency is 393 hz.+The highest cutoff frequency that VIsual3D will allow you is 0.393* sampling-rate.
  
-==== example script ====+If your EMG signals are sampled at 1000 Hz, the highest cutoff frequency is 393 Hz.
  
-the highpass filter is not part of the linear envelope, but is used to remove the [[visual3d:documentation:emg:processing:detecting_muscle_onset|dc offset]].+=== Example Script === 
 + 
 +The highpass filter is not part of the linear envelope, but is used to remove the [[Visual3D:Documentation:EMG:Processing:Detecting_Muscle_Onset|DC offset]].
  
 <code> <code>
-apply high pass filter with 50 hz cutoff +Apply high pass filter with 50 hz cutoff 
-highpass_filter  +Highpass_Filter  
-/signal_types=analog  +/Signal_Types=ANALOG  
-/signal_names=emg1+emg2+emg3  +/SIgnal_Names=EMG1+EMG2+EMG3  
-/signal_folder=original  +/Signal_Folder=ORIGINAL  
-! /result_suffix=  +! /Result_Suffix=  
-/result_folder=highpass +/Result_Folder=HIGHPASS 
-! /filter_class=butterworth  +! /Filter_Class=BUTTERWORTH  
-/frequency_cutoff=50  +/Frequency_Cutoff=50  
-/num_reflected= 0  +/Num_Reflected= 0  
-/total_buffer_size=100  +/Total_Buffer_Size=100  
-/num_bidirectional_passes=1 +/Num_Bidirectional_Passes=1 
  
  
-rectify the signals +Rectify the signals 
-rectify +Rectify 
-/signal_types=analog +/SIGNAL_TYPES=ANALOG 
-/signal_names=emg1+emg2+emg3 +/SIGNAL_NAMES=EMG1+EMG2+EMG3 
-/signal_folder=highpass  +/SIGNAL_FOLDER=HIGHPASS  
-! /result_names+! /RESULT_NAMES
-! /result_types+! /RESULT_TYPES
-/result_folder=rectify  +/RESULT_FOLDER=RECTIFY  
-! /result_suffix=+! /RESULT_SUFFIX=
 ; ;
  
-apply a low pass filter +Apply a low pass filter 
-lowpass_filter   +Lowpass_Filter   
-/signal_typesanalog  +/Signal_TypesANALOG  
-/signal_namesemg1+emg2+emg3  +/Signal_NamesEMG1+EMG2+EMG3  
-/signal_folderrectify  +/Signal_FolderRECTIFY  
-! /result_suffix=  +! /Result_Suffix=  
-/result_folder=lowpass +/Result_Folder=LOWPASS 
-/frequency_cutoff=10  +/Frequency_Cutoff=10  
-/num_reflected=50+/Num_Reflected=50
 ; ;
 </code> </code>
visual3d/documentation/emg/filtering/integrate_emg.1718801261.txt.gz · Last modified: 2024/06/19 12:47 by sgranger