timestamps relative to onset of recording

256 views
Skip to first unread message

Luke Strgar

unread,
Jun 8, 2021, 12:36:41 PM6/8/21
to Open Ephys
Hi!

I understand when recording continuous data a timestamps.npy file is generated effectively indexing samples relative to the onset of acquisition. Is anyone aware if it is possible to determine the precise onset of acquisition or the precise onset on recording as a unix timestamp, for example?

I have many continuous recordings where acquisition was occurring for an extended period of time before recording, so the first sample in the timestamps array is >> 0. 

Thanks,
Luke

Josh Siegle

unread,
Jun 8, 2021, 12:45:20 PM6/8/21
to Luke Strgar, Open Ephys
Hi Luke,

The settings.xml files saved at the start of each recording contain a “date” entry that provides the start time to within 1 second. Is that accurate enough, or are you looking for something more precise?

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+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/open-ephys/9aee1b12-6698-425d-aaa5-2a4b2aa1c0c3n%40googlegroups.com.

Luke Strgar

unread,
Jun 8, 2021, 2:03:30 PM6/8/21
to Open Ephys
Hi Josh. Sorry I should have specified. We need millisecond level resolution. Are you aware of an alternative approach?

Thanks

Josh Siegle

unread,
Jun 8, 2021, 2:07:06 PM6/8/21
to Luke Strgar, Open Ephys
Are you trying to recover the millisecond-level start time for existing datasets, or to do it for future experiments? If it’s the former, that might be difficult. If it’s the latter, there are a number of possibilities.


Luke Strgar

unread,
Jun 8, 2021, 2:14:24 PM6/8/21
to Open Ephys
Unfortunately, the former. To your knowledge, is it possible?

Josh Siegle

unread,
Jun 8, 2021, 2:19:37 PM6/8/21
to Luke Strgar, Open Ephys
Are you using Linux? Running “stat settings.xml” will give you the Unix timestamp of when the file was created, with sub-millisecond resolution.

Message has been deleted

Luke Strgar

unread,
Jun 8, 2021, 6:25:57 PM6/8/21
to Open Ephys
The folks who acquired the data were working on windows 10 apparently and all the data was transferred to external hard drives before being sent to me. If the data ever had sub millisecond resolution it was lost when copying to these drives. 

Josh Siegle

unread,
Jun 9, 2021, 2:29:16 PM6/9/21
to Luke Strgar, Open Ephys
Can you describe the problem in a bit more detail? I’m assuming you have some external system that is generating data in parallel to Open Ephys, and the GUI's acquisition was stopped and re-started multiple times while the external system continued to generate data. Are there any shared signals between the two systems, or are they completely independent?


Reply all
Reply to author
Forward
0 new messages