Code to control the BlackBox ToolKit v2 device for audio-visual timing checks


License
AGPL-3.0
Install
pip install bbtkv2==0.3

Documentation

The BlackBox ToolKit v2 is a device that allows psychologists to accurately measure the timing of audio-visual stimuli.

The BBTKv2 communicates via a serial protocol over USB. The bbtkv2 python module provided here encapsualtes (some of) the commands described in the API Guide. In a nutshell:

import bbtkv2 

bb = bbtkv2.BlackBoxToolKit()
bb.adjust_thresholds()  # adjust the thresholds manually
bb.clear_timing_data()
text = bb.capture(10)
df1 = bbtkv2.capture_output_to_dataframe(text)
processed_events = bbtkv2.capture_dataframe_to_events(df1)
print(processed_events)

Documentation

Check https://bbtkv2.readthedocs.io/en/latest/intro.html

Installation

pip install bbtkv2==0.1 

Christophe@Pallier.org