Environment Variables

Certain aspects of the o_ptb can be preconfigured by setting so-called environment variables. On Windows, you can set these in the System Settings. On Mac and Linux you do this in the /etc/environment, bashrc, zshrc or .pam_environment file.

General Configuration

O_PTB_PTB_FOLDER

The location of the Psychtoolbox.

O_PTB_USE_DECORATED_WINDOW

Use decorated windows for the PTB screen when not run in fullscreen mode.

O_PTB_IS_LAB_PC

You should set this variable to true on a Stimulation PC in a lab. This will lead so a warning if an experiment is run in debug mode.

O_PTB_AUDIO_CUTOFF

The audio cutoff frequency. Useful for the tube stimulation systems.

Sound Configuration

O_PTB_PSYCHPORTAUDIO_DEVICE

The PortAudio device number to use.

O_PTB_PSYCHPORTAUDIO_SFREQ

The sampling frequency of the device when using PortAudio.