Programming Howto:Create a custom Signal Processing Module
Back
To this howto's overview page.
Create module files from templates
Execute the NewBCI2000Module binary from the BCI2000 build directory.
Enter "VeryNiceSignalProcessing" when prompted for the new module's name.
You will get a list of files that have been created for you ...
... which you may verify using a Windows explorer window. Note that a filter source file has been created automatically, with its name derived from the module's name.
Create a module project using CMake
Double-click the configure script from the BCI2000 build directory to open the CMake GUI.
In the CMake GUI, click "Generate" to re-create project files.
A project called "VeryNiceSignalProcessing" will have been added at the end.
Edit the module's code in the IDE
Switch to VisualStudio, and click "Reload" when prompted what to do.
Locate the "VeryNiceSignalProcessing" project in the list of projects.
Define a default location for the new filter in its RegisterFilter() statement, and deactivate the #error statement above that.
Define the actual location for the new filter in the PipeDefinition source file, and deactivate the #error statement below that.
Build the new module
Right-click the project, and choose "Build" from the context menu.
A "VeryNiceSignalProcessing" executable will have been created in the BCI2000 "prog" directory.
Next step
As a next step, learn how to attach the debugger to a BCI2000 module.
See also
Programming Howto:Building and Customizing BCI2000
Programming Tutorial:Implementing a Data Acquisition Module
Programming Tutorial:Implementing a Signal Processing Filter