invalid eyelink.dll error

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
Try if the file downloaded from...

<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, "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
>
Michal,

Did you install the eyelink libraries?
See: http://psychtoolbox.org/wikka.php?wakka=EyelinkToolboxHowTo

gr.
frans


--- In 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
>