Installing Bpod‎ > ‎

Ubuntu 14

These are instructions for setting up Bpod on a computer running Ubuntu 14.XX. 
We recommend at least an Intel Corei5 processor and 8GB of RAM.
This tutorial assumes you have loaded Bpod's firmware and physically installed the Asus Xonar DX sound card.

  • Install Ubuntu 14 64bit with >100GB partition

  • Update Ubuntu to current version if necessary

  • Install the linux- lowlatency package: sudo apt-get install linux-lowlatency

  • Install MATLAB. If copying the disk image from a USB drive formatted with Exfat, install Exfat support:

    • apt-add-repository ppa:relan/exfat

    • sudo apt-get install fuse

    • sudo apt-get install exfat-fuse

    • After mounting the iso, navigate to : /media/USERNAME/MATHWORKS_R2011A/ and run sudo ./install

    When prompted, check “install script”.

  • Run MATLAB (if default install location, from terminal: sudo /usr/local/MATLAB/R2011a/bin/matlab

  • Install PsychToolbox:

    • Download PsychToolbox by following instructions for linux here. Use the SUBVERSION based installation.

    • Allow all patches and use default settings when prompted.

  • Copy Bpod files from here and add /Bpod/Bpod System Files to MATLAB path

  • Close MATLAB

  • Open a terminal window and add yourself to the “dialout” group:

    • sudo usermod -a -G dialout kepecslab (if kepecslab is your username)

  • Set the sound subsystem to “no attenuation”. From terminal, run: alsamixer

    • Ensure that Card: shows Xonar DX

    • Select each slider *EXCEPT for the front L&R* and use the mouse scroll wheel to maximize (0dB gain)

    • Press “Esc” to save and exit.

    • Without this step, audio card sync pulses will not be sent.

  • Restart matlab as root (same as step 4)

  • Run Bpod from the command prompt.

Note: Gnome ModemManager does not play well with Arduino; it discovers Arduino and probes it with bytes that interfere with communications, possibly leaving Bpod in a state where it expects bytes that will never arrive. If you experience issues starting Bpod and you're using Gnome, consider disabling the modem manager.

Note: A previous installation step was automated in the current version. If you are not using PsychToolbox, MATLAB needs to be instructed that ports of the form /dev/ttyACMx are valid serial ports. On first run, Bpod should automatically handle this, and then ask you to restart MATLAB. If it fails, do the following:
    • from terminal, launch the editor as root. Run: sudo gedit

    • Paste the following line into the text editor: -Dgnu.io.rxtx.SerialPorts=/dev/ttyS0:/dev/ttyS1:/dev/USB0:/dev/ttyACM0

    • Save the file as java.opts to the following location:  /usr/local/MATLAB/R2011a/bin/glnxa64

  

   

Comments