Problems with TTL Timing (TTL lag?)

22 views
Skip to first unread message

Pedro Félix

unread,
Sep 23, 2025, 1:26:44 PM (3 days ago) Sep 23
to Open Ephys
Hello, 
We are attempting to perform a closed-loop experiment, where we send continuous buffers of data to Python using the ZMQ interface plugin, process them to detect an electrophysiological pattern, and then use the NetworkEvents plugin to trigger TTL events in the GUI. EventsBroadcaster is there as a safeline that sends event timings back to Python to be saved separately. (signal chain attached).

We are observing a really puzzling problem:
The TTL events seem to show up as delayed relative to the stimulation, which impedes adequate characterization (as shown in picture - the spikes correspond to stimulation artefacts, and should be after the TTL...):
I checked the sample number of the continuous data (it begins in 0), and also looked at several ways of reading the data (both through the provided analysis tools and also other methods). There seems to be an around 250 ms delay to every TTL...

I can provide more information and the data by e-mail, if helpful to solve the problem :D.
Hope you can provide some valuable insights,

Best Regards,
Pedro

Pedro Félix

unread,
Sep 23, 2025, 1:28:50 PM (3 days ago) Sep 23
to Open Ephys
output.png
(see image and signal chain)
signal_chain

Josh Siegle

unread,
Sep 23, 2025, 6:20:12 PM (3 days ago) Sep 23
to Pedro Félix, Open Ephys
Hi Pedro,

Can you also include a diagram of the hardware connections in your setup? And if you can share part or all of an example dataset that has this problem, that would be helpful.

Josh


--
You received this message because you are subscribed to the Google Groups "Open Ephys" group.
To unsubscribe from this group and stop receiving emails from it, send an email to open-ephys+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/open-ephys/4013db8e-8c26-4bc5-9a44-46a873efda39n%40googlegroups.com.

Message has been deleted
Message has been deleted
Message has been deleted
Message has been deleted

Pedro Félix

unread,
Sep 24, 2025, 3:15:29 PM (2 days ago) Sep 24
to Open Ephys
Hello, thanks a lot for your assistance :D.

Yes, this is a rough schematic of our hardware pipeline.

We are using TTLs generated through the network events plugin to trigger light stimulation through na Arduino Output plugin…
We use ADC to check the synchronization (1 - Plexon, 2 - Arduino).

I will provide an example dataset :D.

Best,
Pedro

hardware_pipeline2.jpg

Reply all
Reply to author
Forward
0 new messages