Electrophysiology Synchronization
Overview
The ConductMaze electrophysiology synchronization module generates precisely timed TTL digital output pulses on every behavioral event, enabling frame-accurate alignment of neural recordings with apparatus-controlled experimental events. The system interfaces with Neuralynx acquisition systems through the NetCom API client library, establishing a network connection to the Cheetah data acquisition software and transmitting event commands that are logged alongside neural data streams.
Each behavioral event type produces a distinct TTL pattern on the digital I/O interface: CS onset, CS offset, US delivery, lever press, nose-poke, door operation, reinforcer delivery, trial start, and trial end each generate unique pulse signatures. This allows offline sorting of neural data by event type without relying on temporal alignment alone. The Neuralynx adapter implements the IExternalAdapter interface with Connect, SendMessage, and Disconnect methods, providing a clean abstraction that can be extended to other recording systems including Blackrock Microsystems, Open Ephys, and Tucker-Davis Technologies.
ConductMaze logs all TTL output events with microsecond timestamps in its own event file, creating a ground-truth behavioral timeline that can be cross-referenced with the neural recording system's event channel. The included MazeSimulator module allows validation of TTL timing and adapter connectivity before running live recording sessions, reducing setup time on surgery days.
Trial Flow
Configure Adapter
Select recording system (Neuralynx, Blackrock, OpenEphys), set host and port
Connect to Server
NetCom client connects to Cheetah server, sets application name
Verify Connection
Confirm bidirectional communication and event channel registration
Start Behavioral Session
Begin protocol; TTL output armed on all event channels
Behavioral Event
Animal performs action (lever press, zone entry, trial transition)
Generate TTL Pulse
Event-specific TTL pattern sent via digital I/O; command sent to recording system
Log Timestamp
Microsecond timestamp recorded in ConductMaze event file
Session End
Disconnect from recording server, export synchronized event log
Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
| Recording System | enum | Neuralynx | Target electrophysiology system (Neuralynx, Blackrock, OpenEphys, Tucker-Davis) |
| Server Hostname | string | localhost | Hostname or IP of the recording system acquisition computer |
| Server Port | integer | 26090 | Network port for the recording system API connection |
| TTL Pulse Width | seconds | 0.001 | Duration of each TTL output pulse in seconds (typically 1 ms) |
| Event Channel Map | enum | Auto | Mapping of behavioral events to digital output channels (Auto, Custom) |
| CS Onset TTL Channel | integer | 1 | Digital output channel for conditioned stimulus onset events |
| US Delivery TTL Channel | integer | 2 | Digital output channel for unconditioned stimulus delivery events |
| Response TTL Channel | integer | 3 | Digital output channel for operant response events (lever, nose-poke) |
Metrics
| Metric | Unit | Description |
|---|---|---|
| Total TTL Events | count | Total number of TTL pulses generated during the session |
| Events by Type | count | Breakdown of TTL events by behavioral event category |
| Mean TTL Jitter | μs | Mean timing deviation between software event and TTL output edge |
| Connection Drops | count | Number of times the recording system connection was lost and re-established |
| Command Success Rate | percent | Percentage of SendCommand calls that received successful acknowledgment from Cheetah |
| Session Sync Offset | ms | Measured offset between ConductMaze and recording system clocks at session end |
Sample Data
| Time_us | Event | TTL_Channel | Pulse_Width_ms | Command_Sent | Ack_Status |
|---|
Representative data for illustration purposes. Actual values will vary by species, strain, and experimental conditions.
Applications
- 1Fear conditioning + single-unit recording — align CS/US timestamps with hippocampal place cell firing patterns
- 2Operant behavior + LFP — correlate lever press events with prefrontal cortex theta/gamma oscillations during decision-making
- 3Optogenetic verification — confirm that ConductMaze-triggered light delivery produces expected neural responses in real-time
- 4Multi-site recording during spatial navigation — sync T-maze door operations and arm entries with multi-electrode array data
- 5Closed-loop neural-behavioral experiments — future-ready architecture for brain-computer interface paradigms
Related Protocols
Compatible Products
Ready to Automate Your Behavioral Protocols?
Contact us for a demo and pricing information.