we are currently setting up an EEG study and it would be nice, if we could sync the responses in our PsychoPy Experiment with the EEG Recordings.
This post describes a similar idea:
I tried to integrate the proposed solutions in multiple ways, however, I was not able to get an output of the system clock. Is there anything more to add to the solution by @dvbridges to get this to run?
Thank you in advance!
No Error Message received, the output is just missing
Correct me if I misunderstand what you are trying to achieve, but why do you not record triggers along with your response in your EEG data?
There is a Psychopy module for that, which you can call in a code component: https://www.psychopy.org/api/parallel.html
This is more precise than relying on the system clock.
works. I confused the .log with the .csv files. The .csv files display the time stamps set with
in the custom code component.
If someone with a similar issue reads this later, please be aware that this approach does not apply the system clock to every component and their events in the .csv file such as “example_text123.started”. The components still use a counter beginning with the experiments start. I guess you would have to find the place in your experiments code, where the main timer starts/is set to 0 and then set it to your system time.
The simpler solution was sufficient for our study, yet I guess there are different instances where you would want such a feature (having a gui implementation of a custom start time setting would also be a nice addition).