Now Shipping! – The EyeLink 3; combined head and eye tracking at up to 1000 Hz.

Download: EDFMEX - EDF importer for Matlab
#1
EDFMEX - Reading EDF data directly into MATLAB

EDFMEX is a tool that emerged in 2007 from the efforts of a member of the EyeLink community, Christopher Kovach. This tool is a wrapper for our EDF Access API written in C, and compiled in MATLAB as a mex function, which allows users to load EDF files directly into MATLAB.

EDFMEX is available below in one of a few formats, either in pre-compiled binaries, or in source code to compile your own mex files.

SR Research recommends that our users first try the pre-compiled version of EDFMEX. These builds are available for Windows, Mac OS, and Linux on both x86 and x64 platforms, with native Apple Silicon support (.mexmaca64) for M1/M2 systems added 2023-11-28.

Importantly, in order for EDFMEX to work, the EyeLink Developers Kit must also be installed on your system, so that the EDF Access API libraries are available.

Before attempting to run EDFMEX please first download and install the latest EyeLink Developers Kit for your platform from the following thread:

Download - EDFMEX pre-compiled binaries

The zip file below includes versions for all supported platforms and system architectures. Once downloaded, please unzip the contents to somewhere in your MATLAB path (e.g. Documents\MATLAB).

.zip   preCompiled_edfmex.zip (Size: 61.73 KB / Downloads: 298)

EDFMEX can be used in MATLAB with the following syntax:

Code:
edfStruct = edfmex('myFile.edf');

The PDF linked below contains some basic information on the contents of EDF files. Please see the EDF Access API documentation that is included with the EyeLink Developers Kit for detailed information about the data structures that are imported to MATLAB.

.pdf   EDFMEX_File_structure.pdf (Size: 35.68 KB / Downloads: 665)


The following thread may also be helpful:
An Introduction to EDF Files


Messages In This Thread
EDFMEX - EDF importer for Matlab - by Dan - 08-27-2020, 15:50