I've run into a slight problem and hope to find some insights here. Apologies in advance if a similar question has popped up previously.
I have spike2 recording the eye movement in the horizontal and vertical axis and run an optogenetic stimulation sequence. At the same time I want to play an OKR video as visual input that we've designed and saved as a VLC video playlist (.xspf). At this time, I manually open a VLC video playlist and press play, and as soon as possible in spike2 press a keyboard marker to indicate when the video roughly started playing and trigger the optogenetic stimulation sequence. Of course, this method is highly variable and inconvenient for data analysis.
Ultimately, we want to open the OKR video and synchronize it with spike2 and the stimulations. So what needs to be done is that (1) when the video starts, spike2 starts recording or (2) while spike2 is recording and the video starts playing a marker is set automatically, and the optogenetic stimulation starts. For the analysis, it is important that in spike2 we know exactly at which second the video started playing.
Is there a way to mark exactly in spike2 when the video starts, so t = 0 for video? For instance that spike2 sends a signal to VLC to start the video (and marks this) or that spike 2 receives a signal when the video starts, marks this, and uses this signal as a trigger for the stimulation sequences.
Thanks a lot for the help,
Amy van Hattem