Hi folks,
I’m meeting an obstacle while building my first Psychopy experiment,
OS : Win10
**Standard Standalone? ** yes
What are you trying to achieve?: My experiment trial has a 500ms fixation, followed by a stimulus that can last at most 1500ms. During the stimulus onset, participants should respond by clicking the keyboard buttons. And the stimulus should disappear once the participant responds, and leave the screen blank to make up for a whole 2000ms. So that each trial is a total of 2000ms. However easy this may sound, I am having trouble making the stimulus disappear once a response is made and leaving the screen blank for the time remaining. Could anyone help me with this, please?
What did you try to make it work?: I tried using “Force end routine”, but it did not work. Because that would end the whole trial and start the next trial straight after. I also tried adding the code component (the following) in “each frame” and “end routine”, but that did not work either.
if key_resp.keys:
stimulus.status = STOPPED
key_resp.status = STOPPED