PennController for IBEX › Forums › Support › About recording key response reaction time › Reply To: About recording key response reaction time
November 29, 2022 at 5:37 pm
#9744
Keymaster
Hi Karen,
You don’t need the callback here, since you already have a wait that ensures that the following code will always be executed after the key has been pressed
You also seem to confuse key.log and var.log with newTrial().log
newTrial(
// ...
newVar("RT1").global().set( () => Date.now() )
,
newKey("flan_RespKey", "FJ")
.log()
.wait()
,
getVar("RT1").set( v => Date.now() - v )
// ...
)
.log("flanRT",getVar("RT1"))
Jeremy