SetupPsychtoolbox - In-place setup of PTB without network access.
This script prepares an already downloaded working copy of Psychtoolbox
for use with Matlab or Octave. It sets proper paths and takes care of
special setup operations for various things.
The optional parameter ‘tryNonInteractiveSetup’ if provided as 1 (true), will
try a setup without user interaction, not asking users for input in certain
situations, but assuming an answer that keeps the setup progressing. Note that
this is not guaranteed to work in all cases, and may end in data loss, e.g.,
overwriting an old and potentially user-modified Psychtoolbox installation.
This non-interactice setup mode is highly experimental, not well tested, not
supported in case of any trouble!
This setup routine is meant for people who want to install Psychtoolbox
but don’t have direct access to the internet. Installation in that case
is a three step procedure:
Download and unpack a full working copy of PTB into your target
folder. Obviously you need to somehow get a copy, either via conventional
download from a computer with network connection (See ‘help
DownloadPsychtoolbox’ or ‘help UpdatePsychtoolbox’) or from a helpful
Change your Matlab/Octave working directory to the Psychtoolbox installation
folder, e.g., ‘cd /Applications/Psychtoolbox’.
Type ‘SetupPsychtoolbox’ to run this script.
Please be aware that the recommended method of installation is via the
online Subversion system, i.e., DownloadPsychtoolbox and
UpdatePsychtoolbox. Some functionality may not work with a copy that is
set up via this script, e.g., PsychtoolboxVersion may provide incomplete
version information. Convenient upgrades via UpdatePsychtoolbox may be
impossible. Download size with this method is much higher as well.
If you get stuck, post your question to the forum:
Please specify your full name and the version of your operating system,
MATLAB or Octave and Psychtoolbox.