Psychology Technical and Research Support

Experimental support

This page is the start of a library of PsychoPy and Eprime scripts which you may find useful as a starting point for your own experiments. Please note the version which the script is required for.

You can also find some useful EPrime and PsychoPy tips here which will be added to over time. We also have our workshop slides available and updated yearly on GitHub.

There are also a number of very useful tutorial videos that covers Python (as well as general computing subjects) at

Dr Joseph Brooks has also created a Kent Player (Kent user access only) video to help his students get started with analyzing PsychoPy output files using Excel. It may also be helpful for others, so please feel free to view here.

If you have had help with an experiment which you would be happy for us to share on here, please contact the Technical Support team.

Experiment tools

Tool Description Requirement Download
NEW CSV merger tool Takes an input folder of CSV files and merges them together. Acts as a tool that can work alongside PsychoPy experiments to merge data files together (which is usually done via EMerge with EPrime). PsychoPy install or Python 2.7 with Pandas library Download

PsychoPy scripts

Experiment Description Version Download
NEW Mouse click object detection A sample script which will record which of two image objects were clicked in a trial and store in the data file. 1.83.04 or above Download
NEW Eyelink integration sample A sample script which will allow hook up to the Eyelink eye trackers and start recording EDF data. 1.82.1 or above Download
Tobii T60XL stroop example Two example stroop demos in PsychoPy which either just track gaze on the screen or record data to a CSV file (like EPrime can do). Fixed error with calibration screen. 1.82.1 or above Download
Basic PsychoPy experiment template A shell PsychoPy file with introduction, instructions, practice and main trial areas to get you started. Download, extract and rename the experiment file to something more meaningful first. 1.82.1 or above Download
EPrime SR Box response A short demonstration script which allows integration of a EPrime based SR Box in PsychoPy (which is not supported out of the box). The script includes code blocks which enable you to record a response from the SR box. This example demonstrates voice response in particular, but can be modified to the other keys. If anything is unclear, please contact Frank or John for a run through on how to use. At a later stage, this will be made available as an easier to use module. 1.81.2 or above Download
Automated response (Stroop demo) A demonstration experiment, showing how you can automate your responses for testing purposes, so that you do not have to sit through long sessions of testing. All code should be documented where relevant, though please speak to John or Frank if you have any questions. 1.81.2 or above Download
Basic Stroop task A typical stroop task example, with instructional screens. Simple single CSV file of data. 1.79.01 or above Download
User break Demonstration code of how to create a break after X amount of trials within your PsychoPy Experiment. 1.82.01 or above Download
Parallel port fire Demonstration code to show how to fire a signal down a parallel port. 1.80.1 or above Download

Eprime scripts

Experiment Description Version Download
NEW - Short display and response Demonstration code of how to show a stimuli for only a brief duration (followed by a blank period waiting for a response), but be able to obtain user response, RT and ACC throughout the entire flow. 2.0.10 or above Download
User break Demonstration code of how to create a break after X amount of trials within your EPrime experiment. 2.0.10 or above Download
Free text entry Prompt user for a free text entry answer to a question. Asks for a calculation answer. See in particular settings under the Keyboard response settings and Advanced settings for how to set this up for yourself. Flash Input Buffer in particular. 2.0.10 or above Download
Basic Stroop task A typical stroop task example, with a practice trial and instructional screens. Uses nested lists to achieve trials. 2.0.10 or above Download
Read CSV to List A simple script which will read in a CSV file based on Session number, and read two columns of data into a EPrime list to use as trial data. 2.0.10 or above Download
Write signal to parallel port A simple script which demonstrates how to send a parallel port signal. Used for communicating with BioPac Acqknowledge or other systems. 2.0.10 or above Download
Timer test A simple script which demonstrates how you can set a manual timer in code between Stimulus objects. Useful if you wish to measure how accurate EPrime's timing is on a particular machine or just in general within your experiments. Demonstrates importance of Code block ordering and Stim object pre-release settings. 2.0.10 or above Download

University of Kent - © University of Kent

The University of Kent, Canterbury, Kent, CT2 7NZ, T: +44 (0)1227 764000

Last Updated: 12/01/2017