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

start

Configure Adapter

Select recording system (Neuralynx, Blackrock, OpenEphys), set host and port

process

Connect to Server

NetCom client connects to Cheetah server, sets application name

decision

Verify Connection

Confirm bidirectional communication and event channel registration

process

Start Behavioral Session

Begin protocol; TTL output armed on all event channels

input

Behavioral Event

Animal performs action (lever press, zone entry, trial transition)

output

Generate TTL Pulse

Event-specific TTL pattern sent via digital I/O; command sent to recording system

process

Log Timestamp

Microsecond timestamp recorded in ConductMaze event file

end

Session End

Disconnect from recording server, export synchronized event log

Parameters

ParameterTypeDefaultDescription
Recording SystemenumNeuralynxTarget electrophysiology system (Neuralynx, Blackrock, OpenEphys, Tucker-Davis)
Server HostnamestringlocalhostHostname or IP of the recording system acquisition computer
Server Portinteger26090Network port for the recording system API connection
TTL Pulse Widthseconds0.001Duration of each TTL output pulse in seconds (typically 1 ms)
Event Channel MapenumAutoMapping of behavioral events to digital output channels (Auto, Custom)
CS Onset TTL Channelinteger1Digital output channel for conditioned stimulus onset events
US Delivery TTL Channelinteger2Digital output channel for unconditioned stimulus delivery events
Response TTL Channelinteger3Digital output channel for operant response events (lever, nose-poke)

Metrics

MetricUnitDescription
Total TTL EventscountTotal number of TTL pulses generated during the session
Events by TypecountBreakdown of TTL events by behavioral event category
Mean TTL JitterμsMean timing deviation between software event and TTL output edge
Connection DropscountNumber of times the recording system connection was lost and re-established
Command Success RatepercentPercentage of SendCommand calls that received successful acknowledgment from Cheetah
Session Sync OffsetmsMeasured offset between ConductMaze and recording system clocks at session end

Sample Data

Time_usEventTTL_ChannelPulse_Width_msCommand_SentAck_Status

Representative data for illustration purposes. Actual values will vary by species, strain, and experimental conditions.

Applications

  • 1
    Fear conditioning + single-unit recordingalign CS/US timestamps with hippocampal place cell firing patterns
  • 2
    Operant behavior + LFPcorrelate lever press events with prefrontal cortex theta/gamma oscillations during decision-making
  • 3
    Optogenetic verificationconfirm that ConductMaze-triggered light delivery produces expected neural responses in real-time
  • 4
    Multi-site recording during spatial navigationsync T-maze door operations and arm entries with multi-electrode array data
  • 5
    Closed-loop neural-behavioral experimentsfuture-ready architecture for brain-computer interface paradigms

Ready to Automate Your Behavioral Protocols?

Contact us for a demo and pricing information.