Skip to content

Latest commit

 

History

History
90 lines (67 loc) · 4.01 KB

File metadata and controls

90 lines (67 loc) · 4.01 KB

Usage - FRIEND Engine

  1. Download and installation

Users can download the Friend Engine software through:

git clone [https://github.com/InstitutoDOr/FriendENGINE.git](https://github.com/InstitutoDOr/FriendENGINE.gitE)

Preferred option as the users can keep track of the changes made to the software through git commands.

After unpacking or cloning the FRIEND Engine distribution, the following (reduced for presentation issues) structure will be shown:

  • Friend_Engine_Sources (aka:FES)
  • Friend_Engine_Sources (aka:FES)
  • Alglib
  • Application
  • study_params.txt
  • FRIEND_Engine
  • build.sh
  • buildLinux.sh ...
  • libFiles
  • liblinear
  • libsvm
  • PlugIn
  • connectivityPlugIn
  • MotorPlugIn
  • ROIbasedPlugIn
  • svmPlugIn
  • ManualPlugIn.rtf ...
  • vardb.cpp
  • Simpleini
  • TestData
  • buildAllLinux.sh
  • buildUbuntu.sh
  • buildAllMac.sh
  • clean.sh
  • Windows
  • Application
  • FriendEngine
  • libBrainDecoding
  • libConnectivity
  • libMotor
  • libROI
  • clean.bat
  • Frontends
  • Unity/FingerTap
  • Unity/Medieval
  • Matlab
  • Python
  • fsl
  • FRIEND_License.txt
  1. Download example data

Example data of a motor study is provided with the distribution (FES/FES/TestData). Other datasets can be downloaded from the NITRC repository: http://www.nitrc.org/projects/friend by registered users.

  1. Study parameters file

Before trying to execute any study, you should take some time to check/modify study configuration parameters (subject directory, data directory, etc.) in Windows: FES\Windows\Application\study_params.txt

MAC + Linux: FES\FES\Application\study_params.txt

  1. MAC+Linux: Engine and plug-ins compilation

Execute the corresponding shell scripts in FES/FES:

After compilation, the engine executable and plug-ins will be created in FES/FES/Application folder.

  1. Windows: Engine and plug-ins compilation

To compile on Windows, we suggest the Visual Studio Express 2013 for Windows suite, downloaded from: http://www.visualstudio.com/en-us/products/visual-studio-express-vs.aspx. After installation, users can open the solution file at FES\Windows\buildAll\buildAll.sln. After compilation, the engine.exe and plug-ins file will be created in the FES\Windows\Application directory.

  1. Engine execution

After executing, the engine will start listening communication in the default port 5678. To change the port, users can execute the engine passing the number of the desired port as a parameter, e.g. engine 6000.