Collecting response over multiple sketchpads
Hi! I've come across a problem with response collection in my experiment. I want to send a trigger at time 0 and then present the stimulus from 0-400 ms, and then a blank screen from 400-1500 ms, and to be collecting keypress responses for the entire 1500 ms. Is there a way to do this? I tried using a coroutine, but I'm sending triggers through an inline script which isn't compatible with the coroutine. If I put the inline script immediately before the coroutine, there is a 120-180 ms delay between the trigger and the stimulus onset (I'm assuming due to the program preparing the coroutine), but I need the trigger to be sent exactly at the onset of the stimulus. If I just put the blank screen's duration for 0 ms and the keypress response item after the blank screen, then any keypresses before 400 ms aren't recorded as responses. Is there a way to fix this?