Send to

Choose Destination
Front Neuroinform. 2015 Apr 8;9:7. doi: 10.3389/fninf.2015.00007. eCollection 2015.

Bonsai: an event-based framework for processing and controlling data streams.

Author information

Champalimaud Neuroscience Programme, Champalimaud Centre for the Unknown Lisbon, Portugal.
Champalimaud Neuroscience Programme, Champalimaud Centre for the Unknown Lisbon, Portugal ; Departamento de Ciência dos Materiais, CENIMAT/I3N and CEMOP/Uninova Lisbon, Portugal.
Department of Cell and Developmental Biology, University College London London, UK.


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.


behavior control; data acquisition system; data stream processing; electrophysiology; open-source; parallel processing; rapid prototyping; video tracking

Supplemental Content

Full text links

Icon for Frontiers Media SA Icon for PubMed Central
Loading ...
Support Center