Hi Jeremy!
I encountered a problem in recording the key response time.
// set key response
newKey("flan_RespKey", "FJ")
.log("flan_RespKey", getKey("flan_RespKey"))
.wait()
.callback(
getVar("RT1").set( v => Date.now() - v )
.log( "flanRT" , getVar("RT1") )
)
,
// record RT
getVar("RT1").set( v => Date.now() - v )
.log( "flanRT" , getVar("RT1") )
What I want to have in the result file is a column “flanRT” that records the duration that subjects take to press on either F or J. Currently what I have is “Wait success” in the result file. I understand that we can always calculate it by subtracting the event times. I’m just curious if we can get this calculated results in the result file directly. Thank you for your help in advance!
Best,
Karen