Installing Rigbox
Below are some easy step-by-step instructions for installing Rigbox without any prior knowledge of Git or MATLAB. For more succinct installation instructions, see the Rigbox README. The first section lists the requirements. NB: Please read this section carefully before attempting to install anything.
Contents
Requirements
For exploring Rigbox's features and running test experiments, Rigbox only needs to be installed on a single computer.
For running full experiments, we recommend running Rigbox on two PCs: one is used for presenting stimuli and communicating with rig hardware, and the other runs a GUI which the user interacts with to monitor the experiment. Currently only National Instruments DAQs are supported for acquiring data from hardware devices.
Software
Rigbox requires the following software to work properly:
- Windows Operating System (7 or later, 64-bit)
- MATLAB (2018b - 2019b, also known as version 9.5 - 9.7)
- Visual C++ Redistributable Packages for Visual Studio 2013 & 2015-2019 (free)
- The MATLAB Data Acquisition Toolbox
- If using an NI DAQ the NI-DAQmx support package (free)
- The GUI Layout Toolbox (v2 or later, free)
- Psychophysics Toolbox (v3 or later, free)
Hardware
Below are a few minimum hardware requirements for both PCs.
- Processor: Intel Core i5-6500 @ 3.0 GHz (or similar)
- Graphics: NVIDIA Quadro P400 (or similar)
- Memory: DDR4 16 GB @ 2133 MHz (e.g. Corsair Vengeance 16 GB)
Install steps
Below are detailed steps on installing all required software. If you already have software installed for a particular step, feel free to skip that step. Unless you are installing Rigbox on a computer which will use a NI-DAQ for data acquistion, you can skip step 5.
- Install Windows 7 or later (Windows 10 is recommended). Windows must be must be 64-bit (sometimes called x64, x86_64, AMD64 or Intel 64).
- Download and install MATLAB by following their installation guide (See note 1MATLAB is not free and requires a MATLAB account in order to download. If you are part of an academic institution you may be able to get MATLAB for free. If in doubt ask your lab supervisor or institute IT department. For more information see MATLAB's install guide.). At step 9, make sure to check the box for the Data Acquisition Toolbox, along with any other MATLAB Mathworks toolboxes you want, though for testing Rigbox, no other toolboxes are required (See note 2Once MATLAB is installed, toolboxes can be downloaded and installed directly within MATLAB via the "Add-Ons" button in the "Home" top toolstrip. This opens the MATLAB 'AddOn Explorer' where you can search and install toolboxes.). NB: This step may take a while.
- Once downloaded, open MATLAB by double-clicking on the MATLAB icon in the start menu.
- Within MATLAB, install the GUI Layout Toolbox (See note 2Once MATLAB is installed, toolboxes can be downloaded and installed directly within MATLAB via the "Add-Ons" button in the "Home" top toolstrip. This opens the MATLAB 'AddOn Explorer' where you can search and install toolboxes.). Make sure the version number is greater than 2.
- Within MATLAB, install the NI-DAQmx Support Package (See note 2Once MATLAB is installed, toolboxes can be downloaded and installed directly within MATLAB via the "Add-Ons" button in the "Home" top toolstrip. This opens the MATLAB 'AddOn Explorer' where you can search and install toolboxes.). NB: This step may take a while.
- Download and install the Microsoft Visual C++ Redistributable Packages for Visual Studio 2013 installer (See note 3To install download and install, follow the link and click the orange 'Download' button. A 'Choose the download you want' window will come up. Select 'vcredist_x64.exe' and click 'Next'. A download window will pop up; click 'Save file'. Once downloaded, double-click the installer and follow the steps.).
- Download and install the Microsoft Visual C++ Redistributable Packages for Visual Studio 2015-2019 installer (See note 4To download and install the MSVC 2015-2019 libraries, follow the link and click 'Save file'. You can then run the file and follow the installation steps.). NB: This is 2015-2019; the previous step was for 2013. Both are required.
- Download and install SilkSVN (See note 5To download and install SilkSVN, follow the link and click the blue button that says 'SVN 1.12.0, 64 bit' on the left-hand side. The numbers might be slightly different but the important thing is that you choose the one that says '64 bit'. Click 'OK' in the pop-up window to save the installer zip file. Once downloaded double-click the zip file and open the exe file contained. Follow all the steps in the installer.).
- Download and install the 64-Bit GStreamer-1.16.0 MSVC runtime, making sure to install all offered packages (See note 6To download and install the 64-Bit GStreamer-1.16.0 MSVC runtime, follow the link and clock 'Save file'. Then open the file and follow the installation steps. Choose the full/complete installation with all packages selected.).
- Download the PsychToolbox installer function and save it into your Documents/MATLAB folder.
- In the MATLAB Command Window (See note 7The MATLAB Command Window is usually at the bottom of the MATLAB window and has a '>>' in it. For more information, please read the MATLAB documentation about the Command Window.), type DownloadPsychtoolbox(userpath) (no quotes) and press enter. This will download and install PsychToolbox to MATLAB folder. At certain points in the installation it will print stuff to the Command Window and ask you to press any key to continue. Do this until the two angled brackes ('>>') reappear.
- Close MATLAB by pressing the 'X' in the top right corner of the window.
- Download and install Git Bash for Windows (See note 8To download and install Git Bash for Windows, follow the link and click 'Save file' when the download window pops up. Open the installer file and click 'Next' repeatedly until the end, then click 'Finish'.). Use all defaults.
- Launch Git Bash (See note 9There might be more than one program installed that has 'Git' in the name. Make sure the one you open is called 'Git Bash'.). A black command line window should appear.
- Type the following line into Git Bash (or copy/paste): cd ~/Documents/Github
- Copy this line and paste it into Git Bash (use right click for pasting): git clone --recurse-submodules https://github.com/cortex-lab/Rigbox
- Launch MATLAB and navigate to the following folder (See note 1MATLAB is not free and requires a MATLAB account in order to download. If you are part of an academic institution you may be able to get MATLAB for free. If in doubt ask your lab supervisor or institute IT department. For more information see MATLAB's install guide.): Documents\Github\Rigbox
- Type the following into the MATLAB Command Window and press enter (See note 1MATLAB is not free and requires a MATLAB account in order to download. If you are part of an academic institution you may be able to get MATLAB for free. If in doubt ask your lab supervisor or institute IT department. For more information see MATLAB's install guide.): addRigboxPaths
- You should be done now. To check this, type eui.SignalsTest; into the MATLAB Command Window and select signalsPong.m. Then click Start. Your mouse controls the right paddle.
Notes
- MATLAB is not free and requires a MATLAB account in order to download. If you are part of an academic institution you may be able to get MATLAB for free. If in doubt ask your lab supervisor or institute IT department. For more information see MATLAB's install guide.
- Once MATLAB is installed, toolboxes can be downloaded and installed directly within MATLAB via the "Add-Ons" button in the "Home" top toolstrip. This opens the MATLAB 'AddOn Explorer' where you can search and install toolboxes.
- To install download and install, follow the link and click the orange 'Download' button. A 'Choose the download you want' window will come up. Select 'vcredist_x64.exe' and click 'Next'. A download window will pop up; click 'Save file'. Once downloaded, double-click the installer and follow the steps.
- To download and install the MSVC 2015-2019 libraries, follow the link and click 'Save file'. You can then run the file and follow the installation steps.
- To download and install SilkSVN, follow the link and click the blue button that says 'SVN 1.12.0, 64 bit' on the left-hand side. The numbers might be slightly different but the important thing is that you choose the one that says '64 bit'. Click 'OK' in the pop-up window to save the installer zip file. Once downloaded double-click the zip file and open the exe file contained. Follow all the steps in the installer.
- To download and install the 64-Bit GStreamer-1.16.0 MSVC runtime, follow the link and clock 'Save file'. Then open the file and follow the installation steps. Choose the full/complete installation with all packages selected.
- The MATLAB Command Window is usually at the bottom of the MATLAB window and has a '>>' in it. For more information, please read the MATLAB documentation about the Command Window.
- To download and install Git Bash for Windows, follow the link and click 'Save file' when the download window pops up. Open the installer file and click 'Next' repeatedly until the end, then click 'Finish'.
- There might be more than one program installed that has 'Git' in the name. Make sure the one you open is called 'Git Bash'.
- To navigate to a folder in MATLAB, either use the Address Field or type the following into the MATLAB Command Window, replacing USER with the name of the Windows user that's currently logged in: cd('C:\Users\USER\Documents\Github\rigbox\')
- If you've followed the above steps you can safely ignore any warnings you may see for trying out Rigbox.
Etc.
Authors: Jai Bhagat, Matteo Caranini, Miles Wells
v0.2.0