OS Win10
PsychoPy version 3.1.5
**Standard Standalone? y
What are you trying to achieve?:
Hello everyone. I have tried to search for the answer to this question on forum, but to no avail. Apologies if this question really is answered elsewhere. My Python skills are minimal, but I think some coding is needed? I am looking to create a Change Blindness Task whereby an image (e.g. Image A) appears on screen for 0.5seconds, then we have 0.2 seconds of nothing (mask), and then a very slightly different version of the same image (i.e. Image B). Just one tiny change.
I wish to repeat this loop fifty times, before moving a text screen that gives participants a choice of options as to what they saw (i.e. 1 - did an object disappear; 2 - did an object change colour, 3- didn’t see any differences, etc.) This I can do, but I want the loop to end after fifty repititions (of both images) or when the participant spots the difference and presses the space bar. It is this last bit I can’t do. I think it requires some code, but I don’t know what to do.
What did you try to make it work?:
This is the basic set-up:
0.2 pause.
0.5 seconds of image.
0.2 secs of nothing.
0.5 seconds of image.
I just have this on loop with the images coming through correctly as signposted on the Excel file, etc.
What specifically went wrong when you tried that?:
I can’t end the loop prematurely when spotting the difference by pressing the space bar. I think it might be just pushing PsychoPy onto the next image in the cycle, and not to the question (Query_P1). For example, rather than:
’Image B_32nd time’ + ‘space bar’ => 'query_P1’
I think I’m getting:
’Image B_32nd time’ + ‘space bar’ => ‘Image A_33rd time’.
I hope that makes sense. There is no error message or anything. The loop just continues to run until the iterations end and I cannot artifically end it by way of a key press.
Many thanks in advance for anyone’s valuable time. It’s a cracking piece of kit if I can just figure this bit out.
James.