LFP from raw data neuralynx

Thanks for the example data and the step-by-step instructions to reproduce the bugs. I could reproduce the errors on my computer and fix them.

The two errors are independent bugs:

  1. No despike: This option was incompatible with the option "Parallel processing toolbox" (in a parfor loop, the GlobalData variable is not accessible, and the test for the signal processing Tb was crashing).
    Fix: https://github.com/brainstorm-tools/brainstorm3/commit/60a261a8e944ecb4989f86deda746b0f029e2ed7

  2. The external toolbox DeriveLFP was not available in the compiled distribution of Brainstorm. I made it a new Brainstorm plugin (https://neuroimage.usc.edu/brainstorm/Tutorials/Plugins), and included it in the compiled version of Brainstorm.
    Fix: https://github.com/brainstorm-tools/brainstorm3/commit/2cf62e02ea8edb898238efdca28ecd2dc5b2e0c5

I am currently recompiling Brainstorm and will post an update before the end of the day.
Please download this last update (make sure the Brainstorm title bar indicates today's date) and try again.