# Eye window visualization

**URL:** <https://mworks.discourse.group/t/eye-window-visualization/941>\
**Category:** Support\
**Created:** [January 11, 2024, 3:04am UTC](https://mworks.discourse.group/t/eye-window-visualization/941 "2024-01-11T03:04:51Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![jrahn331\_SKKU](https://avatars.discourse-cdn.com/v4/letter/j/97f17d/32.png) [@jrahn331\_SKKU](https://mworks.discourse.group/u/jrahn331_SKKU)\
**Post date:** [January 11, 2024, 3:04am UTC](https://mworks.discourse.group/t/eye-window-visualization/941/1 "2024-01-11T03:04:51Z")

</div>

Hi Chris,

I’m trying to troubleshoot some issues with the MWorks eye window.  
In our system, MWorks is receiving the eye signal from an Eyelink.  
To see the continuous eye position signals in the eye window, I put the variables ‘eye\_x’, ‘eye\_y’, and ‘saccade’ in the X, Y, and Saccade fields of the eye window options.

(1) The problem is that the eye window does not show the signal for eye movement (red crosses), only the green circle of the fixation point.  
Looking at the fixed point on the screen, the ‘eye\_x’ and ‘eye\_y’ values in the variable window change well, so it seems to be recognizing the Eyelink signal.  
Are there any additional options I need to set?  
I’m currently using Eyelink 1000 plus, and I’m using the most recently updated version of MWorks.  
Please tell me how to visualize the eye position in the eye window.

(2) In addition to this, I have one more question. In the eye window, I’d like to see not only the eye position but also the eye velocities (eye trace) such as ‘eye\_velocity\_h’ and ‘eye\_velocity\_v’.  
How can I visualize these components?

Thanks,  
Jungryul

---

<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:** [January 11, 2024, 3:37pm UTC](https://mworks.discourse.group/t/eye-window-visualization/941/2 "2024-01-11T15:37:51Z")

</div>

Hi Jungryul,

> The problem is that the eye window does not show the signal for eye movement (red crosses), only the green circle of the fixation point. Looking at the fixed point on the screen, the ‘eye\_x’ and ‘eye\_y’ values in the variable window change well, so it seems to be recognizing the Eyelink signal.

Are the eye\_x and eye\_y values calibrated? That is, are they in units of visual degrees, so that they match MWorks’ display coordinates?

The value under the slider in the lower left of the eye trace graph shows the current length of the slider in degrees. Its default (and maximum) value is 20, so if you’re trying to plot raw EyeLink pupil coordinates (which have typically have values on the order of 1000), they aren’t going to be visible.

FYI, the red crosses show the location of calibration samples, not eye positions. Eye positions are indicated by black dots (no saccade) or blue lines (saccade).

> In the eye window, I’d like to see not only the eye position but also the eye velocities (eye trace) such as ‘eye\_velocity\_h’ and ‘eye\_velocity\_v’. How can I visualize these components?

You can plot them by setting the Auxiliary Analog Signal X and Y fields to the relevant variable names. Again, the values will have to be on the correct scale.

I hope that helps!

Cheers,  
Chris

---

<div class="post-metadata">

**Author:** ![jrahn331\_SKKU](https://avatars.discourse-cdn.com/v4/letter/j/97f17d/32.png) [@jrahn331\_SKKU](https://mworks.discourse.group/u/jrahn331_SKKU)\
**Post date:** [January 12, 2024, 8:14am UTC](https://mworks.discourse.group/t/eye-window-visualization/941/3 "2024-01-12T08:14:18Z")

</div>

Oh! It works great.  
Thank you so much, Chris.

Jungryul

---

<div class="post-metadata">

**Author:** ![jrahn331\_SKKU](https://avatars.discourse-cdn.com/v4/letter/j/97f17d/32.png) [@jrahn331\_SKKU](https://mworks.discourse.group/u/jrahn331_SKKU)\
**Post date:** [January 16, 2024, 8:56am UTC](https://mworks.discourse.group/t/eye-window-visualization/941/4 "2024-01-16T08:56:53Z")

</div>

I have one more question.  
As shown in the attached image, the Eye window shows the eye velocity in both the top and bottom windows (cyan: horizontal velocity, magenta: vertical velocity).  
(1) I want to show the eye velocity trace only at the bottom, not the top, because the display is messy. How can I remove only the top eye’s velocity?

(2) I would like to be able to freely change the range of the Y-axis in the bottom window (currently it’s fixed at a maximum of 20 degrees). Can you tell me how to adjust this?

Thanks,  
Jungryul

 ![Eye_window_screenshot](https://canada1.discourse-cdn.com/flex031/uploads/mworks/original/1X/79d2a1f483598fb7a75055d407fdf4e2b37ed0d8.jpeg)

---

<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:** [January 16, 2024, 3:49pm UTC](https://mworks.discourse.group/t/eye-window-visualization/941/5 "2024-01-16T15:49:01Z")

</div>

Hi Jungryul,

Unfortunately, neither of those changes are possible at present. I’ve opened [an issue](https://github.com/mworks/mworks-issues/issues/454), so that we can add these configuration options in the future. In the meantime, if you need a custom velocity plot, you’ll need to use the [MATLAB window](https://mworks.discourse.group/docs?topic=45) or [Python bridge](https://mworks.discourse.group/t/python-gui-advice/151).

Cheers,  
Chris

---

<div class="post-metadata">

**Author:** ![jrahn331\_SKKU](https://avatars.discourse-cdn.com/v4/letter/j/97f17d/32.png) [@jrahn331\_SKKU](https://mworks.discourse.group/u/jrahn331_SKKU)\
**Post date:** [January 16, 2024, 11:37pm UTC](https://mworks.discourse.group/t/eye-window-visualization/941/6 "2024-01-16T23:37:19Z")

</div>

Thank you!  
I sincerely hope that this issue is resolved.

Thanks again.  
Jungyul

---

<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:** [January 30, 2024, 2:23pm UTC](https://mworks.discourse.group/t/eye-window-visualization/941/7 "2024-01-30T14:23:23Z")

</div>


