| Reference | Downloads | Github

Pylink receiveDataFile


I have a problem with automized file transfer after an eye tracking experiment using SR Research Eyelink 1000. Using pylink.EyeLink("").receiveDataFile prints the progress of the file transfer almost byte by byte. This results in thousands of lines printed to the console. PsychoPy keeps all these lines visible and scrollable in the interface instead of setting a maximum. After some thousand lines, the PsychoPy GUI becomes extremely slow to print additional lines and the receiveDataFile function waits until every single print command returns. This makes the file transfer take at least 15 minutes instead of a few seconds.

One workaround from the SR Research Forum would be to override EyeLink.progressUpdate but I can’t find the file containing the function. Also, this would be a pretty messy and not sustainable solution.
Ideally, receiveDataFile would provide an optional input parameter specifying if progress should be printed consecutively or just one print after file transfer finished.

Best wishes,

I’m having a similar issue. Have you or anyone else found a solution to this? Thanks!

Here is the solution: (you have to register in the SR Research forum to view the thread)
In short: PsychoPy uses an old version of pylink. The latest version that comes with the EyeLink Developer’s Kit (link in forum) needs to be added to PsychoPy (at the moment pylink27).

The thread also contains useful information about other issues. For example there is an EyeLinkCoreGraphicsPsychoPy library with which you can do calibration natively within the PsychoPy window.

Best regards,

1 Like