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.
- Operating System: Windows 10 or 11
- Tools:
- Visual Studio Code (highly recommended for editing code scripts and Git commits)
- Git for Windows (highly recommended for cloning and manipulating this repository)
- .NET Framework 4.7.2 Developer Pack (required for IntelliSense when editing code scripts)
- Visual C++ Redistributable for Visual Studio 2012 (native dependency for OpenCV)
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)
Related Documents
- Experimental Plan: Overview of experimental paradigms using these stimuli
- Standard Oddball Stimulus: Details of the standard oddball paradigm implementation
- Sensory-Motor Closed-Loop: Information about sensorimotor paradigm implementation
- List of Bonsai Scripts: Catalog of all available stimulus scripts