NIMH MonkeyLogic

Behavioral Control and Data Acquisition in MATLAB

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 and data can be collected during tasks from various signal sources.  The timing of events can be synchronized with external devices via event code exchanges.


  • Full support for latest 64-bit MATLAB
  • Compatible with the original MonkeyLogic behavioral tasks
  • NIMH DAQ Toolbox
    • Real-time behavior monitoring (1-ms resolution) using only one DAQ board
    • Support for more input and output devices
      • Binocular or two eye signals (voltage or TCP/IP)
      • Two joysticks (voltage or USB-type)
      • Touchscreen (multi-touch), mouse and keyboard
      • Webcams
      • Triggering a remote reward device via Bluetooth
      • Voice recording
  • MonkeyLogic Graphics Library (MGL)
    • "What you see is what your monkey sees."
    • Transparent images by alpha blending or color key
    • Movie & sound streaming (no limit to 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

System Requirements

  • Windows 7 sp1 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 DAQ devices are supported.

The National Institute of Mental Health (NIMH) is part of the National Institutes of Health (NIH), a component of the U.S. Department of Health and Human Services.