Skip to content

Software Installation: EyeLink

  • The EyeLink MUST be installed before PyEDFRead and Pychopy.
  • Register a new account for downloading the EyeLink Developers Kits. Link for installation.
  • The activation of the new account might take up for 24 hours.
  • Install the EyeLink Developer Kit and EyeLink Data Viewer following the instructions. install-sr-research

2 Additional Steps

2.1 For Windows Platform

  • Ensure you have installed the Microsoft C++ Build Tools.
  • You can download them from the Visual Studio website.
  • Make sure to select the "Desktop development with C++" workload during the installation.
  • Properly set up the environment variable:

    • For example on Windows system
    D:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.40.33807\bin\Hostx64\x64
    D:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.40.33807\include
    
  • Modify the files in the directory of EyeLink for supporting Windows

  • Edit edftypes.h in the dir: C:\Program Files (x86)\SR Research\EyeLink\Includes\eyelink install-variable-win

2.2 For Mac Platform

Install the EyeLink Developer Kit and EyeLink Data Viewer following the instructions on the website.

2.3 For Linux Platform

This part is derived from HCPH SOP. Since we did not work on eye tracking data with Linux system, we refer to the HCPH SOP for completeness.

  • Enable Canonical's universe repository with the following command:
sudo add-apt-repository universe
sudo apt update
  • Install and update the ca-certificates package:
sudo apt update
sudo apt install ca-certificates
  • Add the SR Research Software Repository signing key:
curl -sS https://apt.sr-research.com/SRResearch_key | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/sr-research.gpg
  • Add the SR Research Software Repository as an Aptitude source:

    sudo apt install eyelink-display-software
    
  • Install the EyeLink Data Viewer:

sudo apt install eyelink-dataviewer

3 Virtual Environment Preparation

  • Prepare conda virtual env, with python version above 3.7. Some unexpected issues will occur if the python version=3.6 or below.

    conda create -n edfenv python=3.8
    conda activate edfenv
    pip install cython
    pip install pandas
    pip install h5py
    
  • Install pyedfread from the original repo:

pip install git+https://github.com/s-ccs/pyedfread