Hello! We use Psychopy experiments to collect fNIRS data using NIRx, which uses LSL triggers. We typically send triggers before trial types/conditions adding the following code under “Begin Routine”: outlet.push_sample(x=[marker])
Now we are programming a different experiment that shows a continuous 5 minute movie, and we would like to send LSL triggers at specific time points during the movie to mark conditions, which last anywhere from 4 to 16 seconds each. For example, condition A runs from 00:00 - 00:10, then condition B runs from 00:10 - 00:16, then back to condition A for 4 more seconds, etc. I’m guess I need to use the “Each Frame” section of the custom code, but for the life of me I cannot figure out how to feed it the times. The movie is 30 frames per second, and I can convert seconds to frames if need be. It will be the same times for each participant.
Thanks in advance!