Jump to content

Contributions:BrainFlow

From BCI2000 Wiki
Revision as of 22:46, 13 October 2023 by Rlellis (talk | contribs) (Created page with "==Installation== ===BrainFlow Install=== First, in the same folder containing your working copy of BCI2000, create a folder named 'brainflow'. For example, if the location of your copy of BCI2000 is C:\Users\Bob\Desktop\BCI2000, your folder will be C:\Users\Bob\Desktop\brainflow. In this new folder, open [https://gitforwindows.org/ git bash], and enter 'git clone https://github.com/OpenBCI/brainflow.git' ([https://github.com/OpenBCI/brainflow/tree/master BrainFlow]). Aft...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Installation

BrainFlow Install

First, in the same folder containing your working copy of BCI2000, create a folder named 'brainflow'. For example, if the location of your copy of BCI2000 is C:\Users\Bob\Desktop\BCI2000, your folder will be C:\Users\Bob\Desktop\brainflow. In this new folder, open git bash, and enter 'git clone https://github.com/OpenBCI/brainflow.git' (BrainFlow). After installation is complete, navigate to the 'tools' folder, and run build.py. This will create the solution needed to generate the libraries for EITHER debug or release.

If you wish to use debug mode, open build.py and search for 'config' until you find a section that looks like this:

def build(args):

   if platform.system() == 'Windows':
       config = 'Release'


'config' determines how the solution is built, so adjust this according to which version you plan to use, then run it.

Next, go to brainflow/build and open 'brainflow.sln'. Set the version to match the config used above (release or debug), and build the solution.

In BCI2000's CMake window, C:/Users/Robbie/Documents/BCI2000folder/brainflow/installed/lib/Brainflow.lib C:/Users/Robbie/Documents/BCI2000folder/brainflow/compiled/Debug/BoardController.lib C:/Users/Robbie/Documents/BCI2000folder/brainflow/compiled/Debug/DataHandler.lib C:/Users/Robbie/Documents/BCI2000folder/brainflow/compiled/Debug/MLModule.lib C:\Users\Robbie\Documents\BCI2000folder\brainflow\installed\lib\cmake\brainflow