Introduction

Duijnhouwer-Psychtoolbox-Experiments (DPX) is a Matlab toolbox for creating and analyzing psychophysical experiments for vision research. It is a fully object-oriented extension of Psychtoolbox (PTB) which needs to be installed on your system for DPX to function. DPX is designed to create and manage experiments in a way that promotes simplicity and code reuse. Stimuli and response measures are designed as modules that are plugged into the tried and tested core of DPX. A wide range of these modules currently exists, and creating new ones is straightforward. The core takes care of all the bookkeeping that is common to any experiment, including data output. DPX automatically saves all aspects of the experiments as an easy to work-with format called DPXD. Functions to create analyses based on DPXD-structs are included.

I like to think that DPX relates to PTB as LaTeX to TeX. All the hard work (low-level graphics processing, keeping track of timing, etc.) is done by PTB while DPX provides an easy, structured, yet flexible environment to prepare, run, and analyse experiments.

If you publish work for which DPX was used you should cite PTB.

Requirements

To use DPX you need the following:

Installation

To obtain the DPX files and give Matlab access to them:

Test

If everything is installed properly, the command dpxExampleExperiment will run a basic 2AFC left-right random-dot motion discrimination experiment. Use dpxExampleExperimentAnalysis to plot a psychometric curve of the data. I have heavily commented these examples so that they can serve as DPX tutorials.

Troubleshooting

If you encounter any problems please look in the issues section on GitHub whether your problem has been encountered and (hopefully) solved before. If the problem persists, please raise a new issue.