InitPTB: Begin at the very beginning

This script is designed to accomplish some of the tasks you will consistently want to do at the beginning of essentially any experiment. These include:

  • Assign information about the file(s) that will be used for storing data collected during the study. The datafile should have a unique name, including a participant identifier, and possibly a session or task identifier)

  • Open up a window on the computer to display stimuli and collect responses using PsychToolBox. Set some defaults for how things should display in this window. Save information about these defaults.

  • Set the random number generator on the computer so that randomization works properly.

InitPTB is written expressly to do these things.

return to main page