If this template helps then use it. If not then just delete and start from scratch.
OS (e.g. Win10): win10
PsychoPy version (e.g. 2024.2.4 Py 3.8): 2024.2.4.
Standard Standalone Installation? (y/n) If not then what?:Y
**Do you want it to also run online? (y/n)**N
What are you trying to achieve?:
Hi everyone,
I’m working on an eye-tracking experiment in PsychoPy Builder (v2024.2.4) using an EyeLink 1000 Plus, and I’m looking for help implementing a fixation tolerance area.
I’ve successfully set up the EyeLink integration using the SR Research PsychoPy EyeLink plugin. All necessary files and components (Developer’s Kit, EyeLink plugin components like Initialise Connection, Start Recording, etc.) are installed and working properly - the experiment runs, records eye data, and saves everything as expected.
Now for the issue:
I need to implement a fixation tolerance zone around a central fixation cross. The goal is:
-
If the participant’s gaze moves outside this area while the fixation cross is visible, the trial should be aborted immediately, ideally with a warning message/image such as “BROKEN FIXATION - LOOK AT THE SCREEN CENTRE” or something.
-
That trial should then be recycled back into the trial loop (so I always end up with 90 successful trials).
-
Once the fixation cross disappears, the gaze restriction should end and participants are free to make saccades.
I’ve tried using the GazeTrigger component along with a Code component to monitor whether the trigger was activated, but I can’t get it to behave correctly.
Can anyone help guide me through the best way to implement this logic? Ideally using Builder-compatible tools (I’m trying to avoid writing a fully custom script).
Thanks in advance for any advice or examples you can share!
What did you try to make it work?:
I’ve tried using the GazeTrigger component along with a Code component to monitor whether the trigger was activated, but I can’t get it to behave correctly.