OS: macOS Catalina 10.15
PsychoPy version: 3.1.5
Standard Standalone? (y/n): yes
What are you trying to achieve?: Feedback routine starting immediately after response/no response
What did you try to make it work?: The feedback routine is starting, but on no response trials that have been preceded by several correct or incorrect responses there is a delay between the end of the trial routine and the start of the feedback routine. This delay increases linearly with the number of trials with a response of some kind preceding the no response trial. If there is no response on trial #2 and there was a response on trial #1 the delay is relatively brief. If there is no response on trial #6 and there were responses on trials #1-5 then it is significantly longer like 10-15 seconds. If there are a string of no response trials then the delay only occurs on the first no response trial. If there is a string of no response trials then a response on the next trial there is no delay. I’m perplexed.
This is the code in the trial End Routine tab.
if zz==0: if correct == 'left' and KEYPRESS.keys == 'left': Feed_Back.append(2) elif correct == 'right' and KEYPRESS.keys == 'right': Feed_Back.append(2) elif correct == 'left' and KEYPRESS.keys == 'right': Feed_Back.append(3) elif correct == 'right' and KEYPRESS.keys == 'left': Feed_Back.append(3) elif len(KEYPRESS.keys)==0: Feed_Back.append(4) elif zz==1: Feed_Back.append(1)
The elif line(KEYPRESS.keys)==0: line is the code determining no response
Attached is the full experiment if that would provide useful context.
20th_thesis_Balance.psyexp (341.5 KB)