Jump to content

Contributions:BrainFlow: Difference between revisions

From BCI2000 Wiki
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..."
 
Rlellis (talk | contribs)
Line 1: Line 1:
==Installation==
==Installation==
===BrainFlow Install===
===BrainFlow Install===
Before installation, please install [https://gitforwindows.org/ git bash] and [https://www.python.org/downloads/ python].
Libraries generated from BrainFlow are used for this module, which requires the user to download and build the project. The download process (and configuring the solution) can be automated using these scripts:
<gallery mode="packed" widths=150px heights=150px>
File:OpenIPAddress.PNG|BrainFlow installation/configuration automation scripts
</gallery>
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]). 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.  
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]). 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.  



Revision as of 22:30, 25 October 2023

Installation

BrainFlow Install

Before installation, please install git bash and python.

Libraries generated from BrainFlow are used for this module, which requires the user to download and build the project. The download process (and configuring the solution) can be automated using these scripts:

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