Software Open Access

MGL: Visual psychophysics stimuli and experimental design package

Gardner, Justin L.; Merriam, Elisha P.; Schluppeck, Denis; Larsson, Jonas

Hallum, Luke; Pestilli, Franco; Liu, Taosheng; Birman, Daniel; Jagadeesh, Akshay; Lee, Minyoung

Available from:

MGL is a set of matlab functions for displaying full screen visual stimuli from matlab. It is based on OpenGL functions, but abstracts these into more simple functions that can be used to code various kinds of visual stimuli. Along with a low-level library for displaying stimuli and accessing hardware there is a task library. The task library simplifies writing experiments since it takes care of timing, trials, synching with digital pulses, interfacing with eye-trackers etc. Each new experiment simply implements callback functions that handle how to draw the screen, what to do when a subject responds etc. This makes it quick to write new experiments and makes sure that problems fixed for one experiment are solved for all experiments.
Files (2.0 MB)
Name Size
2.0 MB Download
All versions This version
Views 213214
Downloads 55
Data volume 9.9 MB9.9 MB
Unique views 196197
Unique downloads 55


Cite as