OS (e.g. Win10): Win10
PsychoPy version (e.g. 1.84.x): 2020.1.3.
Standard Standalone? (y/n) Y
What are you trying to achieve?:
I try to setup a change blindess experiment.
What did you try to make it work?:
I followed the solution offered here. So, I have a loop that loops through the various trials (alltrials) and a loop (singletrial) that presents the stimuli in a trial.
In the code component I set up a timer at Begin Experiment
tStart = False
then in Begin Routine I start the timer
if tStart == False:
timer = core.Clock()
tStart = True
and in Each Frame I check whether a key was pressed to break the loop.
if len(keyResp.keys) > 0:
singlereps.addData('RT', timer.getTime())
singlereps.finished = True
tStart = False
What specifically went wrong when you tried that?:
Well, each trial only runs once, that is the sequence BildA, Maske, BildB, MaskeB is shown only once. After a keypress the programm proceeds to the next picture pair, which again is shown only once aso.When I deleted the key-component from the routine, pictures are shown as expected.
Well, I need a response. So, how do I use the key-component to end a trial in a change blindness experiment? I am out of options.
Cheers Jens