Step 5: Test the Script

1. Save the script to your user scripts path.  By default, this path is the "EMG Scripts" folder within your "My Documents" folder.  To verify the correct path, open Tools -> Options

2. Load a sample data file into the workspace.  To test this script, use the example file cycling10N.emg.  To test the script, we will remove the segment of this data between 2 and 3 seconds on Channel 1.

3. Right-click on the channel and select the user created script.

4. Set the calculation script parameters to remove the segment we are interested in.

 

5. Plot the original data overlaid on the processed data to verify that the script has functioned correctly.