TY - JOUR T1 - Bonsai: An Event-based Framework for Processing and Controlling Data Streams JF - bioRxiv DO - 10.1101/006791 SP - 006791 AU - GonÇalo Lopes AU - Niccolò Bonacchi AU - João Frazão AU - Joana P. Neto AU - Bassam V. Atallah AU - Sofia Soares AU - Luís Moreira AU - Sara Matias AU - Pavel M. Itskov AU - Patrícia A. Correia AU - Roberto E. Medina AU - Lorenza Calcaterra AU - Elena Dreosti AU - Joseph J. Paton AU - Adam R. Kampff Y1 - 2014/01/01 UR - http://biorxiv.org/content/early/2014/10/23/006791.abstract N2 - The design of modern scientific experiments requires the control and monitoring of many parallel data streams. However, the serial execution of programming instructions in a computer makes it a challenge to develop software that can deal with the asynchronous, parallel nature of scientific data. Here we present Bonsai, a modular, high-performance, open-source visual programming framework for the acquisition and online processing of data streams. We describe Bonsai’s core principles and architecture and demonstrate how it allows for flexible and rapid prototyping of integrated experimental designs in neuroscience. We specifically highlight different possible applications which require the combination of many different hardware and software components, including behaviour video tracking, electrophysiology and closed-loop control of stimulation parameters. ER -