際際滷

際際滷Share a Scribd company logo
Day 2:
Installation of PTB on
MATLAB and GNU octave
Psychtoolbox (PTB)
practical course
by Volodymyr B. Bogdanov
vlabogd@yahoo.com
Kyiv 2017
http://psychtoolbox.org/credits/
Version 1: 1995 for Macintosh
by David Brainard
Mei Zhang, Elliot Waldron and
Allen Ingling contributed to the first
working version for Windows
Please dont thank us.
Cite us.
Acknowledgement:
We wrote our
experiments in Matlab,
using the Psychophysics
Toolbox extensions
(Brainard, 1997; Pelli,
1997; Kleiner et al,
2007).
Credits!
Denis Pelli
Mario Kleiner
Allen Ingling
Richard Murray
Tobias Wolf
Version 2: 1996 (for Macintosh and
2000 for Windows) written by
David Brainard and Denis Pelli
David Brainard
Version 3: for Windows done by
Allen Ingling. Mario Kleiner, Richard
Murray Tobias Wolf contributed
Runtime environment:
64-Bit Matlab version 7.14 (R2012a) or
later, and GNU Octave version 3.8 or later
on Linux, and 64-Bit Octave version 4.2 on
OS X and MS-Windows.
Operating system:
GNU Linux is strongly recommended. Also
works on Apple Mac OS X (Intel) and
Microsoft Windows (Intel), but will be much
less well supported by the developers
Graphics card:
Recommended are OpenGL 2.1 (or better)
capable GPUs from AMD or NVidia.
Sound card:
On Linux and OS X, any card supported by
the operating system should work well, as
well as built-in sound chips. On Windows,
an ASIO (Audio Stream Input/Output)
capable audio card.
System Requirements Psychtoolbox-3 still runs
under Microsoft Windows XP,
Windows Vista, Windows 7
and Windows 8/8.1, but we
dont actively test for
compatibility with any
system but Windows 10.
Installation of PTB and other necessary software
1. Microsoft Visual C runtime libraries: Download Package
redistribuable Microsoft Visual C++ 2010 (x64)
- vcredist_x64.exe
Windows
2. GStreamer version 1.0 64-Bit
- gstreamer-1.0-x86_64-1.10.2.msi
3. Subversion installer 1.7.x client
- Slik-Subversion-1.9.7-x64.msi
4. Psychtoolbox installer
- DownloadPsychtoolbox.m
Windows installation
1. Install the Microsoft Runtime Libraries for MSVC 2010
(vcredist_x64.exe). You can find installers for these at Microsofts site
beforehand.
2. If you intend to use multi-media functions, you must install the
64-Bit GStreamer-1.0 runtime from gstreamer.freedesktop.org
(gstreamer-1.0-x86_64-1.10.2). Make absolutely sure that you install
all offered packages.
3. Download Subversion installer Windows: Subversion 1.7.x
command-line client (Slik-Subversion-1.9.7-x64.msi)
4. Download the Psychtoolbox installer.
5. Create a new folder called toolbox.
6. Move the Psychtoolbox installer (DownloadPsychtoolbox.m) there.
7. Open Matlab and type the following in the command window:
cd C:toolbox
DownloadPsychtoolbox('C:toolbox')
Microsoft Runtime Libraries for MSVC 2010 (vcredist_x64.exe)
GStreamer for 64-Bit Matlab/GNU Octave
http://gstreamer.freedesktop.org/data
/pkg/windows/1.10.2/gstreamer-1.0-x86_64-1.10.2.msi
Subversion Windows 1.7.x command-line client
(Slik-Subversion-1.9.7-x64.msi)
http://psychtoolbox.org/download
Download the Psychtoolbox installer
Various Matlab versions show
instable behavior with
GStreamer unless they are
used without the Graphical user
interface and Java, ie. in
matlab.exe -nojvm mode.
-nojvm mode.
"C:Program FilesMATLABR2007bbinmatlab.exe" -nojvm
http://docs.psychtoolbox.org/PsychDemos
Demos are helpful
1. Testing your system
2. Examples of the usage of PTB functions
3. Templates for your own experiemnts
DotDemo  moving colored multi-size dots
DriftDemo  animated grating
ExpandingRingsDemo  expanding colored rings
GarboriumDemo  randomly moving multi-size Gabor patches
KbDemo  ID of keys, keypress timing, screen feedback
MouseTraceDemo  recording mouse motion
SimpleImageMixingDemo  image manipulations
PlayMoviesDemo  downloads and plays online streams
A list of selected demos recommended to run
after the installation of PTB is finished.
DotDemo
DriftDemo
ExpandingRingsDemo
GarboriumDemo
KbDemo
MouseTraceDemo
SimpleImageMixingDemo
PlayMoviesDemo

More Related Content

Psychtoolbox (PTB) practical course by Volodymyr B. Bogdanov, Kyiv 2017, Day 2

  • 1. Day 2: Installation of PTB on MATLAB and GNU octave Psychtoolbox (PTB) practical course by Volodymyr B. Bogdanov vlabogd@yahoo.com Kyiv 2017
  • 2. http://psychtoolbox.org/credits/ Version 1: 1995 for Macintosh by David Brainard Mei Zhang, Elliot Waldron and Allen Ingling contributed to the first working version for Windows Please dont thank us. Cite us. Acknowledgement: We wrote our experiments in Matlab, using the Psychophysics Toolbox extensions (Brainard, 1997; Pelli, 1997; Kleiner et al, 2007). Credits! Denis Pelli Mario Kleiner Allen Ingling Richard Murray Tobias Wolf Version 2: 1996 (for Macintosh and 2000 for Windows) written by David Brainard and Denis Pelli David Brainard Version 3: for Windows done by Allen Ingling. Mario Kleiner, Richard Murray Tobias Wolf contributed
  • 3. Runtime environment: 64-Bit Matlab version 7.14 (R2012a) or later, and GNU Octave version 3.8 or later on Linux, and 64-Bit Octave version 4.2 on OS X and MS-Windows. Operating system: GNU Linux is strongly recommended. Also works on Apple Mac OS X (Intel) and Microsoft Windows (Intel), but will be much less well supported by the developers Graphics card: Recommended are OpenGL 2.1 (or better) capable GPUs from AMD or NVidia. Sound card: On Linux and OS X, any card supported by the operating system should work well, as well as built-in sound chips. On Windows, an ASIO (Audio Stream Input/Output) capable audio card. System Requirements Psychtoolbox-3 still runs under Microsoft Windows XP, Windows Vista, Windows 7 and Windows 8/8.1, but we dont actively test for compatibility with any system but Windows 10.
  • 4. Installation of PTB and other necessary software 1. Microsoft Visual C runtime libraries: Download Package redistribuable Microsoft Visual C++ 2010 (x64) - vcredist_x64.exe Windows 2. GStreamer version 1.0 64-Bit - gstreamer-1.0-x86_64-1.10.2.msi 3. Subversion installer 1.7.x client - Slik-Subversion-1.9.7-x64.msi 4. Psychtoolbox installer - DownloadPsychtoolbox.m
  • 5. Windows installation 1. Install the Microsoft Runtime Libraries for MSVC 2010 (vcredist_x64.exe). You can find installers for these at Microsofts site beforehand. 2. If you intend to use multi-media functions, you must install the 64-Bit GStreamer-1.0 runtime from gstreamer.freedesktop.org (gstreamer-1.0-x86_64-1.10.2). Make absolutely sure that you install all offered packages. 3. Download Subversion installer Windows: Subversion 1.7.x command-line client (Slik-Subversion-1.9.7-x64.msi) 4. Download the Psychtoolbox installer. 5. Create a new folder called toolbox. 6. Move the Psychtoolbox installer (DownloadPsychtoolbox.m) there. 7. Open Matlab and type the following in the command window: cd C:toolbox DownloadPsychtoolbox('C:toolbox')
  • 6. Microsoft Runtime Libraries for MSVC 2010 (vcredist_x64.exe)
  • 7. GStreamer for 64-Bit Matlab/GNU Octave http://gstreamer.freedesktop.org/data /pkg/windows/1.10.2/gstreamer-1.0-x86_64-1.10.2.msi
  • 8. Subversion Windows 1.7.x command-line client (Slik-Subversion-1.9.7-x64.msi)
  • 10. Various Matlab versions show instable behavior with GStreamer unless they are used without the Graphical user interface and Java, ie. in matlab.exe -nojvm mode. -nojvm mode. "C:Program FilesMATLABR2007bbinmatlab.exe" -nojvm
  • 11. http://docs.psychtoolbox.org/PsychDemos Demos are helpful 1. Testing your system 2. Examples of the usage of PTB functions 3. Templates for your own experiemnts
  • 12. DotDemo moving colored multi-size dots DriftDemo animated grating ExpandingRingsDemo expanding colored rings GarboriumDemo randomly moving multi-size Gabor patches KbDemo ID of keys, keypress timing, screen feedback MouseTraceDemo recording mouse motion SimpleImageMixingDemo image manipulations PlayMoviesDemo downloads and plays online streams A list of selected demos recommended to run after the installation of PTB is finished.