Millisecond Forums

measure button release time

https://forums.millisecond.com/Topic23974.aspx

By juliane_d - 3/7/2018

Hi there,

Is it possible to measure the response time as a button release time instead of onset of button press?
And in this line, would it be possible to implement a response trial that begins on participants releasing a keypress?

thanks again,
Juliane

By Dave - 3/8/2018

juliane_d - Thursday, March 8, 2018
Hi there,

Is it possible to measure the response time as a button release time instead of onset of button press?
And in this line, would it be possible to implement a response trial that begins on participants releasing a keypress?

thanks again,
Juliane


Yes, a <trial> can accept a key release as response. To specify a release prepend a minus sign to the respective keyboard scan code. E.g.

<trial mytrial>
...
/ validresponse = (-57)
...
</trial>

would accept a release of the spacebar as its response.
By juliane_d - 3/8/2018

Dave - Thursday, March 8, 2018
juliane_d - Thursday, March 8, 2018
Hi there,

Is it possible to measure the response time as a button release time instead of onset of button press?
And in this line, would it be possible to implement a response trial that begins on participants releasing a keypress?

thanks again,
Juliane


Yes, a <trial> can accept a key release as response. To specify a release prepend a minus sign to the respective keyboard scan code. E.g.

<trial mytrial>
...
/ validresponse = (-57)
...
</trial>

would accept a release of the spacebar as its response.

thanks a lot, works nicely!