# Mworks Eye tracker

**URL:** <https://mworks.discourse.group/t/mworks-eye-tracker/930>\
**Category:** Support\
**Created:** [November 15, 2023, 4:56pm UTC](https://mworks.discourse.group/t/mworks-eye-tracker/930 "2023-11-15T16:56:11Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ani\_Ayvazian-Hancock](https://avatars.discourse-cdn.com/v4/letter/a/7c8e57/32.png) [@Ani\_Ayvazian-Hancock](https://mworks.discourse.group/u/Ani_Ayvazian-Hancock)\
**Post date:** [November 15, 2023, 4:56pm UTC](https://mworks.discourse.group/t/mworks-eye-tracker/930/1 "2023-11-15T16:56:11Z")

</div>

Hi Chris,

My name is Ani, I’m one of the techs in the DiCarlo lab. I was wondering if you could answer a question for me about the eye tracking in MWorks. In the eye window, we can see the green target fixation point and when the monkey fixates correctly we can see a red cross appear, but there is no constant tracking (normally looks like a black line darting around the screen). On our other rigs, in the eye tracking window, under options there is the code eye\_v, eye\_h, and eye\_in\_window, and we thought that this might fix it, but it doesn’t seem to have made any difference. Could you advise on how we might go about regaining the eye tracker?

Thank you,  
Ani

---

<div class="post-metadata">

**Author:** ![cstawarz](https://yyz1.discourse-cdn.com/flex031/user_avatar/mworks.discourse.group/cstawarz/32/3_2.png) [@cstawarz](https://mworks.discourse.group/u/cstawarz)\
**Post date:** [November 15, 2023, 5:17pm UTC](https://mworks.discourse.group/t/mworks-eye-tracker/930/2 "2023-11-15T17:17:15Z")

</div>



---

<div class="post-metadata">

**Author:** ![cstawarz](https://yyz1.discourse-cdn.com/flex031/user_avatar/mworks.discourse.group/cstawarz/32/3_2.png) [@cstawarz](https://mworks.discourse.group/u/cstawarz)\
**Post date:** [November 15, 2023, 5:20pm UTC](https://mworks.discourse.group/t/mworks-eye-tracker/930/3 "2023-11-15T17:20:31Z")

</div>



---

<div class="post-metadata">

**Author:** ![cstawarz](https://yyz1.discourse-cdn.com/flex031/user_avatar/mworks.discourse.group/cstawarz/32/3_2.png) [@cstawarz](https://mworks.discourse.group/u/cstawarz)\
**Post date:** [November 15, 2023, 5:28pm UTC](https://mworks.discourse.group/t/mworks-eye-tracker/930/4 "2023-11-15T17:28:50Z")

</div>

Hi Ani,

You need to set the Eye Window Options to match the variables you use for eye tracking in the experiment. “eye\_h” and “eye\_v” are probably correct for the “X” and “Y” settings. However, “Saccade” should be set to the name of the variable used as the [eye\_state](https://mworks.github.io/documentation/latest/components/eye_monitor.html#eye-state) parameter of the experiment’s [eye monitor](https://mworks.github.io/documentation/latest/components/eye_monitor.html). This may just be “saccade”, but it probably is _not_ “eye\_in\_window”, which is most likely used by a [fixation point](https://mworks.github.io/documentation/latest/components/circular_fixation_point_stimulus.html).

Also, be sure that the setting labeled “seconds” (lower left of the main eye window) is set to something greater than zero. This setting controls how many seconds of eye position data are used when drawing the eye trace. If it’s zero, there will be no eye trace, even if you have all the variables set correctly.

Cheers,  
Chris

---

<div class="post-metadata">

**Author:** ![Ani\_Ayvazian-Hancock](https://avatars.discourse-cdn.com/v4/letter/a/7c8e57/32.png) [@Ani\_Ayvazian-Hancock](https://mworks.discourse.group/u/Ani_Ayvazian-Hancock)\
**Post date:** [November 15, 2023, 5:43pm UTC](https://mworks.discourse.group/t/mworks-eye-tracker/930/5 "2023-11-15T17:43:37Z")

</div>

Hi Chris,

Thank you so much for getting back to me, this has worked!

Best,  
Ani

---

<div class="post-metadata">

**Author:** ![cstawarz](https://yyz1.discourse-cdn.com/flex031/user_avatar/mworks.discourse.group/cstawarz/32/3_2.png) [@cstawarz](https://mworks.discourse.group/u/cstawarz)\
**Post date:** [November 27, 2023, 2:19pm UTC](https://mworks.discourse.group/t/mworks-eye-tracker/930/6 "2023-11-27T14:19:17Z")

</div>


