Reply To: Response time limit

PennController for IBEX Forums Support Response time limit Reply To: Response time limit

#8656
Jeremy
Keymaster

Hi,

I’m not sure if you want to move on to the next trial without logging any keypress if the participant does press the spacebar before the three seconds have elapsed (and otherwise still wait for a keypress on the spacebar after those three seconds have elapsed, but make sure the keypress is logged), or if you want to automatically move to the next trial after three seconds without logging any keypress if the participant fails to press the spacebar within that time window

The former would look like this:

newKey("space", " ")
,
newTimer("3s", 3000).callback( getKey("space").log() ).start()
,
getKey("space").wait()

the latter would look like this:

newTimer("3s",3000).start()
,
newKey(" ").log("last").callback( getTimer("3s").stop() )
,
getTimer("3s").wait()

(Note that with the latter, you’ll still have a line in the results file that says “Never” if the spacebar is pressed after 3s)

Jeremy