Installing Psychtoolbox

From Addiction Research Laboratory
Revision as of 12:41, 23 December 2014 by Schneck2 (Talk | contribs)

Jump to: navigation, search

This page describes how to install and configure Psychtoolbox in Matlab. It also describes how to configure the sound card for low latency, precision use and how to configure IO.

1. Download and install Psychtoolbox by following these instructions. Note that if installing on a 32-bit matlab you will need to specify a compatible PTB flavor in the matlab command as well as the path, e.g.: >> DownloadPsychtoolbox('C:\toolbox','Psychtoolbox-3.0.11')

2. Install drivers and configure fast IO. From Methods\Matlab\PTB\IO:

Copy inpout32.dll to the C:\windows\system32 directory.

From Methods\Psychtoolbox for Data Collection Computers\

Copy io32.mexw32, config_io.m, inp.m and outp.m to C:\toolbox\PsychToolbox\

3. Indicate base address for IO card. See instructions on this page: Install InstaCal and Create IOConfig.dat File


4. Conduct preliminary timing test. If this is a Windows OS installation, type GetSecsTest at the Matlab command prompt to conduct a preliminary timing integrity test. For more information on this test, type help GetSecsTest at the Matlab command prompt and/or read the Psychtoolbox Wiki entry.

5. Fix DAQ error. Open C:\Program Files\Matlab\R2012a\toolbox\daq\daq\private\mwmcc.ini

Search for PCIe and delete one of the double brackets. This is a bug and hopefully will be fixed in subsequent release by Matlab

6. Copy custom Curtin lab PTB functions to local computer. Copy this folder: P:\Methods\Matlab\PsychToolbox\PTBFunctions to your study programs folder, for example: C:\Local\CurtinLab\LocalKaye1\Kaye1_Programs. Visitors can access these functions here

FOR DATA COLLECTION ONLY: Checkout via SVN this URL: https://svn.code.sf.net/p/curtinlibrary/code/trunk to access custom Curtin lab PTB functions on your local computer


Page created by JJC, 2010-04-21