AUTHOR=Lopes Gonçalo , Bonacchi Niccolò , Frazão João , Neto Joana P. , Atallah Bassam V. , Soares Sofia , Moreira Luís , Matias Sara , Itskov Pavel M. , Correia Patrícia A. , Medina Roberto E. , Calcaterra Lorenza , Dreosti Elena , Paton Joseph J. , Kampff Adam R. TITLE=Bonsai: an event-based framework for processing and controlling data streams JOURNAL=Frontiers in Neuroinformatics VOLUME=9 YEAR=2015 URL=https://www.frontiersin.org/journals/neuroinformatics/articles/10.3389/fninf.2015.00007 DOI=10.3389/fninf.2015.00007 ISSN=1662-5196 ABSTRACT=

The design of modern scientific experiments requires the control and monitoring of many different 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 the rapid and flexible prototyping of integrated experimental designs in neuroscience. We specifically highlight some applications that require the combination of many different hardware and software components, including video tracking of behavior, electrophysiology and closed-loop control of stimulation.