This repository stores Bonsai code to run visual stimuli that are part of this community effort: Neural mechanisms of predictive processing.

Organization

All Bonsai workflows should go into the code/stimulus-control/src folder, along with the Extensions folder.

Deployment

To deploy the Bonsai code, run code/stimulus-control/bonsai/setup.cmd.
This small script will download and regenerate the current Bonsai environment (see tutorial for further details).
Each time you change a project dependency via the Package Manager, the Bonsai.Config file will be updated, and you can choose to commit these changes.


Prerequisites

These should only need to be installed once on a fresh new system and are not required if simply refreshing the install or deploying to a new folder.

Hardware Specific:

These are needed to run Bonsai workflows on the Allen Institute rigs with HARP devices: - FTDI CDM Driver 2.12.28 (serial port drivers for HARP devices) - Spinnaker SDK 1.29.0.5 (device drivers for FLIR cameras) - On the FLIR website: Download > Archive > 1.29.0.5 > SpinnakerSDK_FULL_1.29.0.5_x64.exe - NI-DAQmx 19.0 (drivers for NI-DAQ devices)