Harp

Harp is a standard for asynchronous real-time data acquisition and experimental control in neuroscience. Each device timestamps every event in hardware and synchronizes to a shared clock, so data from a whole setup is aligned without any processing afterwards. The Harp standard covers a lightweight binary communication protocol, a set of common registers for microcontroller firmware, and a clock synchronization protocol.

Commands and events are streamed to the host computer over USB with a latency of one millisecond. The stateless and symmetric communication protocol allows temporally accurate logging without fixed sampling rates or redundant processing, and devices connected to the shared clock line keep their clocks synchronized to a precision of tens of microseconds.

Harp Behavior board with peripherals