This is a simple PsychoPy script for running a Delayed Matching to Sample task.
Here’s how it works: you see a sample image for 5 seconds, wait 20 seconds, and then pick the matching image from two choices.
- Loads images from a folder (supports PNG, JPG, BMP, and more).
- Pairs images by number order in filenames (e.g.,
1.jpgwith2.jpg). - Adjustable timings for sample, delay, and feedback.
- Logs results to CSV with accuracy and reaction times.
- Click-based interface with green/red feedback.
- (Optional) Fixation dot appears.
- Sample image is shown for 5s.
- Wait for 20s.
- Two images appear — one is the original, one is a foil.
- Click the one you think is correct.
- See feedback and move on to the next trial.
- PsychoPy
- Python 3.8+
- A folder of numbered images
Enjoy experimenting, and feel free to tweak it for your needs!