Variable feedback timing and total trial time question

Hi Stephen,

After thinking about this again, I realised it’s not actually that complicated. I just had to let go of my initial idea. This is what I would suggest:

  • Have just one routine
  • Pre-determine the length of the routine using a dummy text component (length 6.5 s)
  • Allow a response in the first 4 s
  • Make sure the response does not end the routine
  • Set the default feedback onset to 4 s
  • Now, the only thing you need to do is check for the occurrence of a response; if a response occurs, get its onset and add 2 s to it; use this time to update the onset of your feedback (so, the basic idea is to move around the onset of the feedback in a routine of fixed length depending on the occurrence of a response)

Please find a minimal working example attached. What’s missing: The example does not check whether or not the response was accurate.

Note: If the response occurs very late, there will basically be no ITI.

Hope this helps.

Jan

variable_FB_onset.psyexp (10.1 KB)