Reply To: problems with timeout

PennController for IBEX Forums Support problems with timeout Reply To: problems with timeout

#10514
noedoc1
Participant

Hi Jeremy! I dowloaded the results file and I am having some problems identifying the key pressed in the lexical decision task. I put the .log command on both the newKey and the getKey, but on the results file it says (failed keypresses happened). I pressed the keys following a pattern, so there should be several 1 answers, several 0 answers, several null answers (which are time-out answers; this are actually displayed), several 1 answers and so on…
I also don’t understand why all the information about the pressed keys are at the bottom, and not on each trial. Do you see what the problem is?

Here is the relevant code:

Template( "list.csv" , 
    row => newTrial( "test" ,   
        // Display all Text elements centered on the page, and log their display time code
        defaultText.center().print("center at 50vw","middle at 50vh").log()
        ,
        // Automatically start for Timer elements when created, and log those events
        defaultTimer.log().start()
        ,
        // Mask, shown on screen for 250ms
        newText("mask","########"),
        newTimer("maskTimer", 250).wait(),                       
        getText("mask").remove()
        ,
        // Prime, shown on screen for 28ms
        newText("prime",row.prime),
        newTimer("primeTimer", 28).wait(),
        getText("prime").remove()
        ,
        // Mask, shown on screen for 14ms
        newText("blanco"," "),
        newTimer("blancoTimer", 14).wait(),                       
        getText("blanco").remove()
        ,
        // Mask, shown on screen for 46ms
        newText("mask2","$$$$$$$$"),
        newTimer("maskTimer2", 46).wait(),                       
        getText("mask2").remove()
        ,
        // Target, shown on screen until 1 or 0 is pressed
        newText("target",row.target)
        ,
        newVar("rt") 
        .global()
        .set(v=>Date.now())
        ,
        newTimer("hurry", 3000)
        .log()
        ,
        newKey("answerTarget", "10")
        .log()
        .callback(getTimer("hurry").stop())
        ,
        getTimer("hurry").wait()
        ,
        getKey("answerTarget")
        .test.pressed()
        .success(getText("target").remove())
        .failure(getText("target").remove())
        .log()
        ,
        getVar("rt")
        .set(v=>Date.now()-v)
        ,
        newText("*")
        .css("font-size", "x-large")
        .center().print("center at 50vw","middle at 50vh")
        ,
        newTimer("*timer", 250).wait()
        ,
        getText("*")
        .remove() // End of trial
)
    .log( "rt", getVar("rt")) // guardo el tiempo
    .log( "Group", row.Group)      // Group o lista
    .log( "cond", row.cond)  // condición (1, 2, 3, 4)
    .log( "cond_prime", row.cond_prime)  // condición del prime (congruente, incongruente)
    .log( "cond_target", row.cond_target)  // condición del target (congruente, incongruente)
    .log( "morf_prime", row.morf_prime)  // morfología del prime (femenina o masculina)
    .log( "morf_target", row.morf_target)  // morfología del target (femenina o masculina)
    .log( "rta_esperada", row.rta_esperada)  // respuesta esperada (1 o 0, 1 para sí/palabra y 0 para no/nopalabra)
    .log( "tarea", row.tarea)  // tipo de tarea (mujer_neutros; varon_neutros)
)

And here is the demonstration link: https://farm.pcibex.net/r/nwrPpa/

Thanks in advance!