Abstract
To measure people’s reaction times to the nearest millisecond, it is necessary to know exactly when a stimulus is displayed. This article describes how to display stimuli with millisecond accuracy on a normal CRT monitor, using a PC running Linux. A simple C program is presented to illustrate how this may be done within X Windows using the OpenGL rendering system. A test of this system is reported that demonstrates that stimuli may be consistently displayed with millisecond accuracy. An algorithm is presented that allows the exact time of stimulus presentation to be deduced, even if there are relatively large errors in measuring the display time.
Article PDF
Similar content being viewed by others
References
Finney, S. A. (2001). Real-time data collection in Linux: A case study.Behavior Research Methods, Instruments, & Computers,33, 167–173.
Graves, R. E., &Bradley, R. (1988a). Millisecond timing on the IBM PC/XT/AT and PS/2: A review of the options and corrections for the Graves and Bradley algorithm.Behavior Research Methods, Instruments, & Computers,23, 377–379.
Graves, R. [E.], &Bradley, R. (1988b). More on millisecond timing and tachistoscope applications for the IBM PC.Behavior Research Methods, Instruments, & Computers,20, 408–412.
MacInnes, W. J., &Taylor, T. L. (2001). Millisecond timing on PCs and Macs.Behavior Research Methods, Instruments, & Computers,33, 174–178.
Myors, B. (1998). The PC tachistoscope has 32 pages.Behavior Research Methods, Instruments, & Computers,30, 457–461.
Myors, B. (1999). The PC tachistoscope has 240 pages.Behavior Research Methods, Instruments, & Computers,31, 329–333.
Nye, A. (1992).Xlib programming manual (3rd ed.). Sebastopol, CA: O’Reilly.
Plant, R. P., Hammond, N., &Turner, G. (2004). Self-validating presentation and response timing in cognitive paradigms: How and why?Behavior Research Methods, Instruments, & Computers,36, 291–303.
Stewart, N. (2006). A PC parallel port button box provides millisecond response time accuracy under Linux.Behavior Research Methods,38, 170–173.
Tsai, J.-L. (2001). A multichannel PC tachistoscope with high resolution and fast display change capability.Behavior Research Methods, Instruments, & Computers,33, 524–531.
Woo, M., Neider, J., Davis, T., &Shreiner, D. (1999).OpenGL programming guide (3rd ed.). Reading, MA: Addison-Wesley.
Author information
Authors and Affiliations
Corresponding author
Rights and permissions
About this article
Cite this article
Stewart, N. Millisecond accuracy video display using OpenGL under Linux. Behavior Research Methods 38, 142–145 (2006). https://doi.org/10.3758/BF03192759
Received:
Accepted:
Issue Date:
DOI: https://doi.org/10.3758/BF03192759