Reply To: Some questions about setting up an eyetracking experiment

PennController for IBEX Forums Support Some questions about setting up an eyetracking experiment Reply To: Some questions about setting up an eyetracking experiment

#10884
Jeremy
Keymaster

Hi Sanghee,

The project you shared in your last message does not use the same version of PennController (2.0) as the project your shared in your initial message (2.1). So since your project uses 2.0, you should use .call and not .run. Also, in 2.0 you cannot just inject a bare javascript function in a trial’s script, you have to package it as a Function element, like this: newFunction( ()=>(document.querySelector("body").style.cursor='unset') ).call()

So all in all, your code will contain these lines:

newFunction( ()=>(document.querySelector("body").style.cursor='unset') ).call()
,
newSelector("selection")
    .enableClicks()
    // etc.

Regarding calibration, it looks like you’re already doing what you’re describing. Maybe comment back in the calibrate lines that are currently commented out, so you give your participants one last chance before setting “Failed” to “yes”. If you want to insert the FailedCalibrationLink trial between each experimental trial, just use sepWith, eg: sepWith("FailedCalibrationLink", rshuffle("Block1_target", "Block1_filler"))

Jeremy