Code to control the BlackBox ToolKit v2 device for audio-visual timing checks
Project description
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
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
bbtkv2-0.2.tar.gz
(18.8 kB
view hashes)
Built Distribution
bbtkv2-0.2-py3-none-any.whl
(19.9 kB
view hashes)