Making a holding period for pressing a button in PsychoPy

Dear colleagues,

I am currently interning at the Potsdam University where I am involved in a Spatial Cognition Project. In our research, participants are presented with a circle and a white button in the center of the screen (see the pic). In each trial, participant here an audio file with a number (e.g. “five”, “two”, etc.) and they are asked to indicate with their finger (participants conduct the experiment on a big sensor screen) where the number is located at the circled (as if the circle is a clockface). After they indicated the number in the circle, they need to press the central button to start a new trial. I have made the experiment, but my professor asked to make some changes.

First, I need to make participants not just pressing the button in the center but to replace it with a holding period, i.e., participants should press the central “button” and hold it for a while, e.g., during 200 ms, to initiate.

And second, I need to abort all the trials in which participants release the central “button” too early (e.g., within the first 100 ms after the audio file starts) and an error message should appear. As far as I understand, I need to use coder for that, but I have no clue what I should put into it.

Hi Ignat,

Some time ago I posted about using button de-press to capture RT.

This may not be the final solution but it may help you out.


1 Like