Skip to content

Laboratory of Neuropsychology

NIMH MonkeyLogic

NIMH MonkeyLogic is a MATLAB-based software tool for behavioral control and data acquisition. It allows users to design sensory, motor, or cognitive tasks with a familiar, high-level language and execute them with high temporal accuracy. Many object types are available for task composition, such as image, movie, sound, TTL and analog output, and data can be collected during tasks from various signal sources (analog and digital input, mouse/touchscreen, USB joystick, TCP/IP eye tracker, etc.). The timing of events can be synchronized with external devices (e.g., Plexon, TDT, Blackrock) via event code exchanges.

System Requirements

  • Windows 7 or later
  • MATLAB R2011a or later
    • No MATLAB toolbox is required.
  • Microsoft Visual C++ 2013 Redistributable (download from MS website)
  • DirectX End-User Runtimes (download from MS website)
  • National Instruments Multifunction I/O Device (optional)
    • No need to install two boards
    • USB-type devices are supported.


  • Full support for latest 64-bit MATLAB
  • Compatible with the original MonkeyLogic's behavioral tasks
  • NIMH DAQ Toolbox
    • Real-time behavioral monitoring (1-ms resolution) using only one DAQ board
    • Support for more input devices, including mouse/touchscreen, USB joystick and TCP/IP eye tracker
  • MonkeyLogic Graphics Library (MGL)
    • "What you see is what your monkey sees."
    • Support for transparent images by alpha blending or color key
    • Movie streaming (no limit to movie length)
    • Low-latency audio output with XAudio2
  • mlplayer: a trial-replay and video-exporting tool
  • Simulation mode that allows testing user tasks with no special hardware