Visuals/banner.png

Basic Brainstorm setup for workshops

Updated: May 2023

Important notes

Installing Brainstorm

Before coming to the workshop, you need to download Brainstorm (150 MB). To streamline troubleshooting during the session, please save all the downloaded files Desktop folder.

  1. From the Brainstorm Download page, log in or create a Brainstorm account

  2. Download Brainstorm in your Desktop folder:

    • Brainstorm software: brainstorm_YYMMDD.zip (150 MB)

  3. If you already have Brainstorm installed, make sure its version
    is not more than two months old.

  4. Unzip the brainstorm_YYMMDD.zip file on your Desktop folder. Once done, delete the downloaded zip file.

  5. Create a folder brainstorm_db on your Desktop

Final check: you should have now 2 folders on your Desktop:

  1. brainstorm3: Program folder, with the source code and the compiled executable

  2. brainstorm_db: Brainstorm database (empty)

Let's run Brainstorm, to make sure it works correctly on your computer (read the following section).

Running Brainstorm for the first time

With Matlab

Without Matlab

  1. Check that your operating system is supported by Matlab R2022b
  2. Supported OSs for Windows, MacOS and Linux

  3. If your system is not listed here, try with these other versions: 2020b or 2015b

  4. Download the Matlab Runtime R2022b (9.13) for your operating system: https://www.mathworks.com/products/compiler/matlab-runtime.html

  5. Install the Matlab Runtime:
  6. Windows:

    1. Unzip the Matlab Runtime installer
    2. Double-click on the .exe and follow the instructions
  7. MacOS:

    1. Unzip the Matlab Runtime installer at the terminal using the unzip command

    2. At the terminal, type ./install

  8. Linux: From a terminal, unzip .zip, then run ./install

    1. Unzip the Matlab Runtime installer at the terminal using the unzip command

    2. At the terminal, type ./install

  9. If you are having trouble at installing the Matlab Runtime, consult this link: https://www.mathworks.com/help/compiler/install-the-matlab-runtime.html

  10. To run Brainstor, go to the folder brainstorm3/bin/R2022b/ and:

  11. Windows: Double-click on brainstorm3.bat

  12. MacOS: Double-click on brainstorm3.command and wait for instructions

  13. Linux: Open a terminal and run ./brainstorm3.command

  14. Troubleshooting for MacOS or Linux:
    • On recent versions of MacOS, you may get an error message "Application can't be opened because it is from an unidentified developer". This message would appear for all the programs that were not downloaded from the Apple app-store. To go around this verification: right-click on the application > Open, then click on the Open button.

    • From a terminal, make sure that the file "brainstorm3.command" is executable:
      chmod a+x brainstorm3.command

    • If nothing happens, run:
      ./brainstorm3.command MCR_DIR
      MCR_DIR is the MCR 9.0 folder (ex: /Applications/MATLAB/MCR/v90)

    • Try with another binary release: 2012b, 2013b, 2014b, 2016a, ...

  15. Troubleshooting for Windows:
    • Your current user may not have the necessary privileges. If you are an administrator for your computer, you can do the following: right-click on brainstorm3.bat > Run as administrator.

    • If you are not the administrator of your computer and Matlab or the MCR are not installed in the standard paths, Brainstorm may have trouble finding them. To specify manually the path of the MCR or Matlab folder, right-click on brainstorm3.bat > Edit. Fill the second line of the script (Example: @SET MATLABROOT="C:\Program Files\MATLAB\R2015b"), save the file, and try to execute it again.

  16. On Linux or MacOS, you may be asked to select the folder where you installed the MCR.
  17. When asked for the Brainstorm database folder, pick the "brainstorm_db" you have just created.

Make sure it works

In order to check if Brainstorm works properly or your computer, please follow these instructions:

Troubleshooting

For any technical problem, please contact Raymundo Cassani ( raymundo.cassani@mcgill.ca )

WorkshopGeneralInstall (last edited 2023-05-01 21:55:23 by RaymundoCassani)