Hi Beata,
OK, thanks for clarifying. In this case, I fear that you might be out of luck. The camera and open ephys are running on their own clocks, so without some form of physical synchronization, its going to be difficult to align the data.
If you are only interested on events on the order of seconds, and your very confident your camera is not dropping frames (which is extremely common with consumer grade devices and even machine vision cameras that have not be set up correctly), then you might be able to get away with synchronizing based on recording file start times.
However, in general, this a very bad approach. You need some form of physical synchronization between your data sources.
1. If your camera shares a shutter signal via a GPIO, then record that on an OE aux input
2. If not, you can e.g. flash an LED in the camera view and record the voltage driving the LED in your OE aux input.
3. If your camera has a shutter input, you can drive it and the aux OE input with a common clock source like an micro-controller pin
Lots of other variants. But ultimately this is a GIGO issue.
- Jon