Programming Howto:Create a custom Signal Processing Module: Difference between revisions
No edit summary |
|||
| Line 1: | Line 1: | ||
Execute the NewBCI2000Module binary from the BCI2000 build directory | Execute the NewBCI2000Module binary from the BCI2000 build directory | ||
[[File:new_module_1.png]] | [[File:new_module_1.png|center]] | ||
Enter "VeryNiceSignalProcessing" when prompted for the new module's name | Enter "VeryNiceSignalProcessing" when prompted for the new module's name | ||
[[File:new_module_2.png]] | [[File:new_module_2.png|center]] | ||
You will get a list of files that have been created for you ... | You will get a list of files that have been created for you ... | ||
[[File:new_module_3.png]] | [[File:new_module_3.png|center]] | ||
... which you may verify using a windows explorer window | ... which you may verify using a windows explorer window | ||
[[File:new_module_4.png]] | [[File:new_module_4.png|center]] | ||
Double-click the configure script from the BCI2000 build directory to open the CMake GUI | Double-click the configure script from the BCI2000 build directory to open the CMake GUI | ||
[[File:new_module_5.png]] | [[File:new_module_5.png|center]] | ||
In the CMake GUI, click "generate" to re-create project files | In the CMake GUI, click "generate" to re-create project files | ||
[[File:new_module_6.png]] | [[File:new_module_6.png|center]] | ||
A project called "VeryNiceSignalProcessing" will have been added at the end | A project called "VeryNiceSignalProcessing" will have been added at the end | ||
[[File:new_module_7.png]] | [[File:new_module_7.png|center]] | ||
Open the VisualStudio solution file from the BCI2000 build directory | Open the VisualStudio solution file from the BCI2000 build directory | ||
[[File:new_module_8.png]] | [[File:new_module_8.png|center]] | ||
Locate the "VeryNiceSignalProcessing" project in the list of projects | Locate the "VeryNiceSignalProcessing" project in the list of projects | ||
[[File:new_module_9.png]] | [[File:new_module_9.png|center]] | ||
Define a default location for the new filter in its RegisterFilter() statement, and deactivate the #error statement above that | Define a default location for the new filter in its RegisterFilter() statement, and deactivate the #error statement above that | ||
[[File:new_module_10.png]] | [[File:new_module_10.png|center]] | ||
Define the actual location for the new filter in the PipeDefinition source file, and deactivate the #error statement below that | Define the actual location for the new filter in the PipeDefinition source file, and deactivate the #error statement below that | ||
[[File:new_module_11.png]] | [[File:new_module_11.png|center]] | ||
Right-click the project, and choose "Build" from the context menu | Right-click the project, and choose "Build" from the context menu | ||
[[File:new_module_12.png]] | [[File:new_module_12.png|center]] | ||
A "VeryNiceSignalProcessing" executable will have been created in the BCI2000 prog directory | A "VeryNiceSignalProcessing" executable will have been created in the BCI2000 prog directory | ||
[[File:new_module_13.png]] | [[File:new_module_13.png|center]] | ||
==Next step== | ==Next step== | ||
Revision as of 13:42, 16 August 2018
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

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

Open the VisualStudio solution file from the BCI2000 build directory

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

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