# eyelink(&#39;initialize&#39;)

**URL:** <https://psychtoolbox.discourse.group/t/eyelink-39-initialize-39/1590>\
**Category:** Uncategorized\
**Created:** [June 21, 2006, 4:12pm UTC](https://psychtoolbox.discourse.group/t/eyelink-39-initialize-39/1590 "2006-06-21T16:12:50Z")\
**Posts on this page:** 4\
**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:** [June 21, 2006, 4:12pm UTC](https://psychtoolbox.discourse.group/t/eyelink-39-initialize-39/1590/1 "2006-06-21T16:12:50Z")

</div>

Hi,  
  
I've just started trying to use the eyelink toolbox in matlab to   
control the eyelinkII   
  
  
eyelink('initialize')   
isn't working for me, and is returning 10022  
(it is supposed to return 0 if it worked, -1 if it didn't)  
- calling   
eyelink('shutdown');  
informs me "System was not initialized!"  
  
The thing is plugged in, and can run SReyelink demos from this machine.  
  
What am I doing wrong?  
  
Thanks.  
Alice.

---

<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:** [June 22, 2006, 10:45am UTC](https://psychtoolbox.discourse.group/t/eyelink-39-initialize-39/1590/2 "2006-06-22T10:45:53Z")

</div>

Further information  
  
I'm using Matlab 7  
on a PC running Windows XP professional  
  
The matlab paths are set to include psychtoolbox and eyelink and all   
their subfolders  
  
Thanks,  
Alice.  
  
  

> --- In [psychtoolbox@yahoogroups.com](mailto:psychtoolbox@yahoogroups.com), "agc\_rdg" \<agc\_rdg@...\> wrote:  
> \>  
> \> Hi,  
> \>   
> \> I've just started trying to use the eyelink toolbox in matlab to   
> \> control the eyelinkII   
> \>   
> \>   
> \> eyelink('initialize')   
> \> isn't working for me, and is returning 10022  
> \> (it is supposed to return 0 if it worked, -1 if it didn't)  
> \> - calling   
> \> eyelink('shutdown');  
> \> informs me "System was not initialized!"  
> \>   
> \> The thing is plugged in, and can run SReyelink demos from this   
> machine.  
> \>   
> \> What am I doing wrong?  
> \>   
> \> Thanks.  
> \> Alice.  
> \>

---

<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:** [June 22, 2006, 7:05pm UTC](https://psychtoolbox.discourse.group/t/eyelink-39-initialize-39/1590/3 "2006-06-22T19:05:47Z")

</div>

Alice,  
Did you install the correct PC version?  
did you check whether in eyelinkbasic directory there is (only)  
an eyelink.dll and not an eyelink.mex file?  
  
Can you initialize (e.g. eyelinkexample.m in dummy mode? Eyelink(" initializedummy")?  
  
Gr.  
Frans  
  

> --- In [psychtoolbox@yahoogroups.com](mailto:psychtoolbox@yahoogroups.com), "agc\_rdg" \<agc\_rdg@...\> wrote:  
> \>  
> \> Further information  
> \>   
> \> I'm using Matlab 7  
> \> on a PC running Windows XP professional  
> \>   
> \> The matlab paths are set to include psychtoolbox and eyelink and all   
> \> their subfolders  
> \>   
> \> Thanks,  
> \> Alice.  
> \>   
> \>   
> \> --- In [psychtoolbox@yahoogroups.com](mailto:psychtoolbox@yahoogroups.com), "agc\_rdg" \<agc\_rdg@\> wrote:  
> \> \>  
> \> \> Hi,  
> \> \>   
> \> \> I've just started trying to use the eyelink toolbox in matlab to   
> \> \> control the eyelinkII   
> \> \>   
> \> \>   
> \> \> eyelink('initialize')   
> \> \> isn't working for me, and is returning 10022  
> \> \> (it is supposed to return 0 if it worked, -1 if it didn't)  
> \> \> - calling   
> \> \> eyelink('shutdown');  
> \> \> informs me "System was not initialized!"  
> \> \>   
> \> \> The thing is plugged in, and can run SReyelink demos from this   
> \> machine.  
> \> \>   
> \> \> What am I doing wrong?  
> \> \>   
> \> \> Thanks.  
> \> \> Alice.  
> \> \>  
> \>

---

<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:** [June 23, 2006, 7:14pm UTC](https://psychtoolbox.discourse.group/t/eyelink-39-initialize-39/1590/4 "2006-06-23T19:14:54Z")

</div>

Alice,  
  
Do you get an error message after calling eyelink('initialize'), other  
than the 10022 error ?  
  
For example, if your client PC is unable to open a connection to the  
eyelink PC, you should get this message:  
 EyeLink: Initialize: Cannot initialize link system  
  
  
Chris  
  

> On 6/23/06, agc\_rdg \<[agc\_rdg@...](mailto:agc_rdg@...)\> wrote:  
> \> Hi,  
> \> yes I installed the PC version - I've just taken my copy off and put  
> \> a new one on, just to check.  
> \>  
> \> There is (and was) only an eyelink.dll, not an eyelink.mex  
> \>  
> \> I can initialize in dummy mode.  
> \>  
> \> I still can't initialize in normal mode.  
> \>  
> \> Thanks,  
> \> Alice.  
> \>  
> \> --- In [psychtoolbox@yahoogroups.com](mailto:psychtoolbox@yahoogroups.com), "franswcornelissen"  
> \> \<f.w.cornelissen@...\> wrote:  
> \> \>  
> \> \> Alice,  
> \> \> Did you install the correct PC version?  
> \> \> did you check whether in eyelinkbasic directory there is (only)  
> \> \> an eyelink.dll and not an eyelink.mex file?  
> \> \>  
> \> \> Can you initialize (e.g. eyelinkexample.m in dummy mode? Eyelink("  
> \> initializedummy")?  
> \> \>  
> \> \> Gr.  
> \> \> Frans  
> \> \>  
> \> \> --- In [psychtoolbox@yahoogroups.com](mailto:psychtoolbox@yahoogroups.com), "agc\_rdg" \<agc\_rdg@\> wrote:  
> \> \> \>  
> \> \> \> Further information  
> \> \> \>  
> \> \> \> I'm using Matlab 7  
> \> \> \> on a PC running Windows XP professional  
> \> \> \>  
> \> \> \> The matlab paths are set to include psychtoolbox and eyelink and  
> \> all  
> \> \> \> their subfolders  
> \> \> \>  
> \> \> \> Thanks,  
> \> \> \> Alice.  
> \> \> \>  
> \> \> \>  
> \> \> \> --- In [psychtoolbox@yahoogroups.com](mailto:psychtoolbox@yahoogroups.com), "agc\_rdg" \<agc\_rdg@\> wrote:  
> \> \> \> \>  
> \> \> \> \> Hi,  
> \> \> \> \>  
> \> \> \> \> I've just started trying to use the eyelink toolbox in matlab  
> \> to  
> \> \> \> \> control the eyelinkII  
> \> \> \> \>  
> \> \> \> \>  
> \> \> \> \> eyelink('initialize')  
> \> \> \> \> isn't working for me, and is returning 10022  
> \> \> \> \> (it is supposed to return 0 if it worked, -1 if it didn't)  
> \> \> \> \> - calling  
> \> \> \> \> eyelink('shutdown');  
> \> \> \> \> informs me "System was not initialized!"  
> \> \> \> \>  
> \> \> \> \> The thing is plugged in, and can run SReyelink demos from this  
> \> \> \> machine.  
> \> \> \> \>  
> \> \> \> \> What am I doing wrong?  
> \> \> \> \>  
> \> \> \> \> Thanks.  
> \> \> \> \> Alice.  
> \> \> \> \>  
> \> \> \>  
> \> \>  
> \>  
> \>  
> \>  
> \>  
> \>  
> \>  
> \>  
> \> Post your message to: [psychtoolbox@yahoogroups.com](mailto:psychtoolbox@yahoogroups.com)  
> \> Please indicate OS9, OSX, or WIN version, and include your full name.  
> \> Denis Pelli, David Brainard, and Allen Ingling.  
> \> [http://psychtoolbox.org](http://psychtoolbox.org)  
> \>  
> \> Yahoo! Groups Links  
> \>  
> \>  
> \>  
> \>  
> \>  
> \>  
> \>
