If this template helps then use it. If not then just delete and start from scratch.
OS (e.g. Win10):
PsychoPy version (e.g. 1.84.x):
Standard Standalone? (y/n) If not then what?:
What are you trying to achieve?:
What did you try to make it work?:
What specifically went wrong when you tried that?:
Include pasted full error message if possible. “That didn’t work” is not enough information.
Hi, dear Psychopy community,
I am not a professional Psychopy programmer and tried to write a simple auditory reaction time task using the builder. In one trial of this experiment 4 numbers are going to be shown for 3 seconds and then a sound stimulus will be played with a specific duration. Participants are asked to react to the end of the sound as soon as they can by pressing a button, so there is a keyboard element for recording reaction time. Now my problem is that I could not specify a duration for sound if I want the sound stimuli to be changed in each trial. Therefore my sound element has a start time but does not have an stop time. In order to specify the starting time for the keyboard element I put this as the start point condition (sound_1.status == FINISHED) and this button ends the routine. The problem is that when the sound lasts for example 4 seconds, it seems that the keypress starts before the sound ends! I thought whenever the sound ends its status should turn to FINISHED but it seems that it turns to FINISHED before the actual time. So if my sound should starts and ends for instance at 3 and 7 sec , it seems that key starts from 6.5 or 6 or 6.3. This leads to incorrect reaction time.
How can I specify an exact duration for the sound while it is changing in each trial?
I am really confused! I would be happy if anyone can help.![1|690x388]
I uploaded some pictures, maybe helpful.
Testreaction.psyexp (125.9 KB)
timereactiontest.xlsx (7.8 KB)