"A flexible software tool for temporally-precise behavioral control in MATLAB", by
Wael F. Asaad and Emad N. Eskandar. Journal of Neuroscience Methods. 2008 September 30; 174(2): 245–258.
This freely-accessible journal article describes a software system for conducting experiments in psychophysics, systems neuroscience and cognitive neuroscience. The system is based on MATLAB and Data Acquisition Toolbox and allows millisecond-level experimental control.