# invalid eyelink.dll error

**URL:** <https://psychtoolbox.discourse.group/t/invalid-eyelink-dll-error/1989>\
**Category:** Uncategorized\
**Created:** [July 29, 2008, 1:44pm UTC](https://psychtoolbox.discourse.group/t/invalid-eyelink-dll-error/1989 "2008-07-29T13:44:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Allen\_Ingling](https://avatars.discourse-cdn.com/v4/letter/a/a183cd/32.png) [@Allen\_Ingling](https://psychtoolbox.discourse.group/u/Allen_Ingling)\
**Post date:** [July 29, 2008, 1:44pm UTC](https://psychtoolbox.discourse.group/t/invalid-eyelink-dll-error/1989/1 "2008-07-29T13:44:16Z")

</div>

Hello,  
  
I'm working with Eyelink I, using the EyelinkToolbox and the   
PsychToolbox (version 2.54) for Matlab.  
  
I've just installed Matlab 7.6 (R2008a), and set the path to include   
the toolboxes. When running my program, I get the error:  
  
??? Invalid MEX-file  
'D:\EyelinkToolbox144\EyelinkToolbox\EyelinkBasic\eyelink.dll':  
D:\EyelinkToolbox144\EyelinkToolbox\EyelinkBasic\eyelink.dll is not a   
valid Win32 application.  
Error in ==\>  
doesTargetExist\_numFixations\>doesTargetExist\_numFixations\_OpeningFcn   
at 445  
 if eyelink('initialize') ~= 0  
  
I have Windows XP, SP2.  
Until now I worked with Matlab 7.0.4, and it was fine (I switched   
versions for something else that is important for my program).  
  
What could be the problem?  
  
I would really appreciate the help,  
  
Thanks,  
 Michal

---

<div class="post-metadata">

**Author:** ![mariokleiner](https://avatars.discourse-cdn.com/v4/letter/m/13edae/32.png) [@mariokleiner](https://psychtoolbox.discourse.group/u/mariokleiner)\
**Post date:** [August 3, 2008, 10:14pm UTC](https://psychtoolbox.discourse.group/t/invalid-eyelink-dll-error/1989/2 "2008-08-03T22:14:51Z")

</div>

Try if the file downloaded from...  
  
\<[http://svn.berlios.de/wsvn/osxptb/beta/Psychtoolbox/PsychBasic/MatlabWindowsFilesR](http://svn.berlios.de/wsvn/osxptb/beta/Psychtoolbox/PsychBasic/MatlabWindowsFilesR)  
2007a/Eyelink.mexw32?sc=1\>  
  
... works for you. Could be that the original Eyelink.dll is  
not compatible with Matlab R2007a (V7.4) and later.  
This file is from the new PTB-3 eyelink toolbox.  
  
-mario  
  

> --- In [psychtoolbox@yahoogroups.com](mailto:psychtoolbox@yahoogroups.com), "michal.jacob" \<michal.jacob@...\> wrote:  
> \>  
> \> Hello,  
> \>   
> \> I'm working with Eyelink I, using the EyelinkToolbox and the   
> \> PsychToolbox (version 2.54) for Matlab.  
> \>   
> \> I've just installed Matlab 7.6 (R2008a), and set the path to include   
> \> the toolboxes. When running my program, I get the error:  
> \>   
> \> ??? Invalid MEX-file  
> \> 'D:\EyelinkToolbox144\EyelinkToolbox\EyelinkBasic\eyelink.dll':  
> \> D:\EyelinkToolbox144\EyelinkToolbox\EyelinkBasic\eyelink.dll is not a   
> \> valid Win32 application.  
> \> Error in ==\>  
> \> doesTargetExist\_numFixations\>doesTargetExist\_numFixations\_OpeningFcn   
> \> at 445  
> \> if eyelink('initialize') ~= 0  
> \>   
> \> I have Windows XP, SP2.  
> \> Until now I worked with Matlab 7.0.4, and it was fine (I switched   
> \> versions for something else that is important for my program).  
> \>   
> \> What could be the problem?  
> \>   
> \> I would really appreciate the help,  
> \>   
> \> Thanks,  
> \> Michal  
> \>

---

<div class="post-metadata">

**Author:** ![franswcornelissen](https://avatars.discourse-cdn.com/v4/letter/f/df705f/32.png) [@franswcornelissen](https://psychtoolbox.discourse.group/u/franswcornelissen)\
**Post date:** [August 7, 2008, 8:42pm UTC](https://psychtoolbox.discourse.group/t/invalid-eyelink-dll-error/1989/3 "2008-08-07T20:42:15Z")

</div>

Michal,  
  
Did you install the eyelink libraries?  
See: [http://psychtoolbox.org/wikka.php?wakka=EyelinkToolboxHowTo](http://psychtoolbox.org/wikka.php?wakka=EyelinkToolboxHowTo)  
  
gr.  
frans  
  
  

> --- In [psychtoolbox@yahoogroups.com](mailto:psychtoolbox@yahoogroups.com), "michal.jacob" \<michal.jacob@...\> wrote:  
> \>  
> \> Hello,  
> \>   
> \> I'm working with Eyelink I, using the EyelinkToolbox and the   
> \> PsychToolbox (version 2.54) for Matlab.  
> \>   
> \> I've just installed Matlab 7.6 (R2008a), and set the path to include   
> \> the toolboxes. When running my program, I get the error:  
> \>   
> \> ??? Invalid MEX-file  
> \> 'D:\EyelinkToolbox144\EyelinkToolbox\EyelinkBasic\eyelink.dll':  
> \> D:\EyelinkToolbox144\EyelinkToolbox\EyelinkBasic\eyelink.dll is not a   
> \> valid Win32 application.  
> \> Error in ==\>  
> \> doesTargetExist\_numFixations\>doesTargetExist\_numFixations\_OpeningFcn   
> \> at 445  
> \> if eyelink('initialize') ~= 0  
> \>   
> \> I have Windows XP, SP2.  
> \> Until now I worked with Matlab 7.0.4, and it was fine (I switched   
> \> versions for something else that is important for my program).  
> \>   
> \> What could be the problem?  
> \>   
> \> I would really appreciate the help,  
> \>   
> \> Thanks,  
> \> Michal  
> \>
