# programing an experiment Using eyelink and Psychtoolbox

**URL:** <https://psychtoolbox.discourse.group/t/programing-an-experiment-using-eyelink-and-psychtoolbox/163>\
**Category:** Uncategorized\
**Created:** [September 30, 2016, 3:48pm UTC](https://psychtoolbox.discourse.group/t/programing-an-experiment-using-eyelink-and-psychtoolbox/163 "2016-09-30T15:48:28Z")\
**Posts on this page:** 2\
**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:** [September 30, 2016, 3:48pm UTC](https://psychtoolbox.discourse.group/t/programing-an-experiment-using-eyelink-and-psychtoolbox/163/1 "2016-09-30T15:48:28Z")

</div>

Hi,

I am trying to program some experiments in matlab using EyeLink and Psychtoolbox (I work with Eyelink 1000 and windows operating system).

I have a sample code for setting the Eyelink and it works for me to show some images and record the eye fixations of the subjects. Also I have another program written in psychtoolbox that it works for me to record the reaction time and accuracy of the subjects while recognizing a defined object in the image and pressing a button. Now I should combine these two programs, because I need both reaction time and eye fixations of the subjects. Do you have any sample code in matlab that I can use?

Best,

Negar

&nbsp;

---

<div class="post-metadata">

**Author:** ![dcnieho](https://avatars.discourse-cdn.com/v4/letter/d/779978/32.png) [@dcnieho](https://psychtoolbox.discourse.group/u/dcnieho)\
**Post date:** [September 30, 2016, 6:03pm UTC](https://psychtoolbox.discourse.group/t/programing-an-experiment-using-eyelink-and-psychtoolbox/163/2 "2016-09-30T18:03:59Z")

</div>

it sounds like you have all the example code you need. combine the parts of the two programs that you need

  

> On Fri, Sep 30, 2016 at 5:48 PM, [negar.engineering@...](mailto:negar.engineering@...) [PSYCHTOOLBOX] \<[PSYCHTOOLBOX@yahoogroups.com](mailto:PSYCHTOOLBOX@yahoogroups.com)\> wrote:  
> 
> > Hi,
> > 
> > I am trying to program some experiments in matlab using EyeLink and Psychtoolbox (I work with Eyelink 1000 and windows operating system).
> > 
> > I have a sample code for setting the Eyelink and it works for me to show some images and record the eye fixations of the subjects. Also I have another program written in psychtoolbox that it works for me to record the reaction time and accuracy of the subjects while recognizing a defined object in the image and pressing a button. Now I should combine these two programs, because I need both reaction time and eye fixations of the subjects. Do you have any sample code in matlab that I can use?
> > 
> > Best,
> > 
> > Negar
