RT Journal Article SR Electronic T1 Bonsai: An event-based framework for processing and controlling data streams JF bioRxiv FD Cold Spring Harbor Laboratory SP 006791 DO 10.1101/006791 A1 Gonçalo Lopes A1 Niccolò Bonacchi A1 João Frazão A1 Joana P. Neto A1 Bassam V. Atallah A1 Sofia Soares A1 Luís Moreira A1 Sara Matias A1 Pavel M. Itskov A1 Patrícia A. Correia A1 Roberto E. Medina A1 Lorenza Calcaterra A1 Elena Dreosti A1 Joseph J. Paton A1 Adam R. Kampff YR 2014 UL http://biorxiv.org/content/early/2014/10/24/006791.abstract AB 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, i0ncluding behaviour video tracking, electrophysiology and closed-loop control of stimulation parameters.