Log RT (Maze Task)

PennController for IBEX Forums Support Log RT (Maze Task)

Tagged: 

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #10865
    JulianaNovo
    Participant

    Dear Jeremy,

    I am using
    newVar(“RT”).global().set( () => Date.now())
    getVar(“RT”).set( v => Date.now() – v )
    .log(“ResponseTime”, getVar(“RT”))

    to try and log the RTs in a multi-task experiment.

    Can you help me figuring out how to log all the response times?
    Many thanks!

    https://farm.pcibex.net/r/iHuiAl/

    Juliana

    #10873
    Jeremy
    Keymaster

    Dear Juliana,

    If I take these lines from your script:

    newVar("RT").global().set( () => Date.now())
    ,
    getText("Segmento17")
        .remove()
    ,
    getText("Segmento18")
        .remove()
    ,
    getCanvas("Segmento1718")
        .remove()
    ,
    getVar("RT").set( v => Date.now() - v )

    then you’re not tracking reaction times, you’re tracking how long it takes for the browser to remove the two Text and one Canvas elements from the page (most likely this should only take a few milliseconds)

    I suspect that what you want instead is to surround the Selector elements with the Var commands. You can just create as many Var elements as you’d like to surround each Selector element, just make sure to give them unique names (e.g. newVar("RT1314")/getVar("RT1314"), newVar("RT1516")/getVar("RT1516"), etc.) and also make sure to reference each Var element in the log commands on the closing parenthesis of newTrial like the one you currently have

    Jeremy

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.