File Exchange

image thumbnail

uzh/edf-converter

version 1.8.0.0 (44.7 MB) by Eydrian
Converts EyeLink 1000 Edf files into a MATLAB structure

14 Downloads

Updated 23 May 2018

GitHub view license on GitHub

Edf2Mat is a Matlab Toolbox for easy conversion of EyeLink Edf result files. For fast verification of valid data, there is an included plot function, which displays eye movement and pupil size. There are a few examples in the example file which help analyze eye data.

Comments and Ratings (27)

H Yang

I'm experiencing the same problem as Timothy, but it only happens on some files. I have MATLAB 2018a and Eyelink 1000 plus.

I was having the same problem as everyone else. I am not exactly sure why this solved the problem, but if I used the absolute directory, the problem went away. For instance I had the problem when I specified the directory as file = '~/Documents/eyetrack.edf' but not if I specified it as '/Users/mcmahoneg/Documents/eyetrack.edf'

Hope this helps.

Arno Uvin

Same problem as Timothy and the rest. I get the same error even when using the practice .edf file.

Hi all, I am having a similar problem as Kelsey Palghat and Tom Marshall.
I keep getting:

Error in Edf2Mat>@(varargin)edfimporter(varargin{:})

Error in Edf2Mat/processFile (line 365)
obj.RawEdf = importer(obj.filename);

Error in Edf2Mat (line 313)
obj.processFile();
Does anyone have any solutions? I am new to Matlab and not sure how to fix this problem.
Cheers.

I'm also unable to run the example code, with the following error (similar to Tom Marshall):
Error using edfimporter
Failed to open file.

Error in Edf2Mat>@(varargin)edfimporter(varargin{:}) (line 355)
importer = @(varargin)edfimporter(varargin{:});

Error in Edf2Mat/processFile (line 365)
obj.RawEdf = importer(obj.filename);

Error in Edf2Mat (line 313)
obj.processFile();

Error in Example (line 7)
edf0 = Edf2Mat('eyedata.edf');

Was there a solution found?

Jiali Wang

I have following errors:
Warning: Control Character '\S' is not valid. See 'doc sprintf' for control characters valid in the format string.
> In Edf2Mat.Edf2Mat>Edf2Mat.Edf2Mat at 272
Error using Edf2Mat (line 272)

Works great!

cannot solve this problem, which came out of the blue. Please help!

Invalid MEX-file
'PATH/uzh-edf-converter-fae25ca/@Edf2Mat/private/edfimporter.mexmaci64':
dlopen(/PATH/uzh-edf-converter-fae25ca/@Edf2Mat/private/edfimporter.mexmaci64,
6): Library not loaded:
@executable_path/../Frameworks/edfapi.framework/Versions/A/edfapi
Referenced from:
/PATH/uzh-edf-converter-fae25ca/@Edf2Mat/private/edfimporter.mexmaci64
Reason: image not found.

adam boncz

adam boncz

Hi all,

I also have this error:
Error using edfimporter
Failed to open file.

Error in Edf2Mat>@(varargin)edfimporter(varargin{:})

Error in Edf2Mat/processFile (line 364)
obj.RawEdf = importer(obj.filename);

Error in Edf2Mat (line 312)
obj.processFile();

Interestingly, I have two data files recorded using the same eyetracker and same protocol, and Edf2mat imports one of them and only gives the error for the other one. That suggests to me that it's not a path/installation issue, but rather something about the files themselves. However without being able to inspect the contents of the file (by importing it!) I can't tell what the problem is.

I got the same error (e.g., "Invalid MEX-file ... 'edfconv\@Edf2Mat\private\edfimporter.mexw64'", "Error in Edf2Mat>@(varargin)edfimporter(varargin{:})"), but installing Visual C++ Redistributable for Visual Studio 2015
fixed the issue. -- https://www.microsoft.com/en-us/download/details.aspx?id=48145

It is failing to open the file using edfimporter.

Error in Edf2Mat>@(varargin)edfimporter(varargin{:})

Any suggestions?

Kurni Eswar

Kurni Eswar

I have understood that my edf1.Samples.pupilSize has two dimentional array ie [196743x2 double ] and producing an error and not generating graph. Time stamp has same size array[dimention]in the both eyedata.edf and my edf file. Please help me in correcting this problem and producing two graph for different pupils with heat map

Thanking you in advance

Kurni Eswar

Sorry. I got cleared about the below comments. and encountered a new error on converting my edf file
following is the error comments .

Index exceeds matrix dimensions.

Error in Edf2Mat/getPupilSize (line 20)
timeRange = obj.Samples.time(range);

Error in Edf2Mat/plot (line 93)
[tRange, pupil] = obj.getPupilSize(startIdx, endIdx);

Kurni Eswar

I tried to using this code. but it is producing following errors similar to what leek got. As you mentioned on recent comment, i didnt set "@" folder to the path,However still it is showing me the problem. Please help this in solving this issuse
Thanking you in advance.

>> Edf2Mat('eyedata.edf', true);
Invalid MEX-file 'C:\Projects\visual search
program\uzh-edf-converter-release-1.91-0-g770cc04\uzh-edf-converter-770cc04\@Edf2Mat\private\edfimporter.mexw64':
The specified module could not be found.

Error in Edf2Mat>@(varargin)edfimporter(varargin{:}) (line 347)
importer = @(varargin)edfimporter(varargin{:});

Error in Edf2Mat/processFile (line 357)
obj.RawEdf = importer(obj.filename);

Error in Edf2Mat (line 305)
obj.processFile();

Eydrian

please make sure to not inclue the '@' folder and it's content to the path. The containing folder can be added without problems.

I'm using Windows 8.1 PC (64) and getting the same error as Leek got.

It doesn't work for Linux.

This looks really useful. I'm using a Windows PC (64). Getting the following errors on launch. Unzipped everything to work directory no problem. Not sure what the issue is - something with path ?

>> edf1 = Edf2Mat('eyedata.edf');
Undefined function 'edfimporter' for input arguments of type 'char'.

Error in Edf2Mat/processFile/@(varargin)edfimporter(varargin{:})

Error in Edf2Mat/processFile (line 357)
obj.RawEdf = importer(obj.filename);

Error in Edf2Mat (line 305)
obj.processFile();

Eydrian

to install the framework on a mac, do the following in MATLAB in the root folder of the Toolbox:
```
!unzip @Edf2Mat/private/edfapi.framework.zip && sudo mv edfapi.framework /Library/Frameworks/
```

Eydrian

the edfapi.framework must be copied into /Library/Frameworks. The Library can be found in the Package.

on os x in /Library/Frameworks it should look like the following

edfapi.framework/
├── Headers -> Versions/Current/Headers
├── Resources -> Versions/Current/Resources
├── Versions
│ ├── A
│ │ ├── Headers
│ │ │ ├── edf.h
│ │ │ ├── edf_data.h
│ │ │ └── edftypes.h
│ │ ├── Resources
│ │ │ └── Info.plist
│ │ └── edfapi
│ └── Current -> A
└── edfapi -> Versions/Current/edfapi

weiyan chee

Excited to try this toolbox to make my life easier, but having the same issue as Daire Corley-Carmody. Keeps telling me invalid MEX-file for edfimporter.mexmaci64. the Edf2Mat.m says "On Mac the edfapi.framework must be copied to /Library/Framworks/ !!!Not the personal Library but to the root Library"

Which folder should I copy the edfapi.framework file to?

invalid mex file for edfimporter.mexw64?

Works great. Thanks!

Updates

1.8.0.0

The version on github was recompiled and is not longer compatible with matlab prior to 2014b. Update Matlab Version

MATLAB Release Compatibility
Created with R2014b
Compatible with any release
Platform Compatibility
Windows macOS Linux

@Edf2Mat